示例#1
0
        public BassPlayerSetupModel()
        {
            // Note: the BassLibraryManager is needed here to initalize the BassPlayer and plugins. The instance is not Disposed here, as this would lead to stopping current playback.
            var bassLibraryManager = BassLibraryManager.Get();

            _enableWASAPIExclusiveProperty = new SProperty(typeof(bool), false);
            _useDirectSoundProperty        = new SProperty(typeof(bool), false);
            _useWASAPIProperty             = new SProperty(typeof(bool), false);
            _directSoundDeviceProperty     = new SProperty(typeof(string), string.Empty);
            _WASAPIDeviceProperty          = new SProperty(typeof(string), string.Empty);
        }
示例#2
0
 public BassAudioMetadataExtractor()
 {
     _metadata = new MetadataExtractorMetadata(METADATAEXTRACTOR_ID, "Bass Audio metadata extractor", MetadataExtractorPriority.Core, false,
                                               MEDIA_CATEGORIES, new[]
     {
         MediaAspect.Metadata,
         AudioAspect.Metadata,
         ThumbnailLargeAspect.Metadata
     });
     _lib = BassLibraryManager.Get();
 }
示例#3
0
        public BassPlayerSetupModel()
        {
            // Note: the BassLibraryManager is needed here to initalize the BassPlayer and plugins. The instance is not Disposed here, as this would lead to stopping current playback.
            var bassLibraryManager = BassLibraryManager.Get(Path.Combine(Path.GetDirectoryName(Assembly.GetExecutingAssembly().Location), InternalSettings.PluginsPath));

            _enableWASAPIExclusiveProperty = new SProperty(typeof(bool), false);
            _useDirectSoundProperty        = new SProperty(typeof(bool), false);
            _useWASAPIProperty             = new SProperty(typeof(bool), false);
            _directSoundDeviceProperty     = new SProperty(typeof(string), string.Empty);
            _WASAPIDeviceProperty          = new SProperty(typeof(string), string.Empty);
        }
示例#4
0
    /// <summary>
    /// Initializes a new instance of the BASS player controller.
    /// </summary>
    /// <param name="player">BASS player instance which contains this controller instance.</param>
    /// <param name="playerMainDirectory">Directory where the BASS player is located. Plugins will be searched relative
    /// to this directory.</param>
    public Controller(BassPlayer player, string playerMainDirectory)
    {
      Log.Debug("Initializing BASS controller");
      _player = player;

      _bassLibraryManager = BassLibraryManager.Get(Path.Combine(playerMainDirectory, InternalSettings.PluginsPath));

      _playbackProcessor = new PlaybackProcessor(this);
      _outputDeviceManager = new OutputDeviceManager(this);

      _mainThreadTerminated = false;

      _workItemQueue = new WorkItemQueue();

      _playerThread = new Thread(PlayerThreadMain) {Name = "BassPlay"};
      _playerThread.Start();

      SetVolume_Async(100);
    }
示例#5
0
        /// <summary>
        /// Initializes a new instance of the BASS player controller.
        /// </summary>
        /// <param name="player">BASS player instance which contains this controller instance.</param>
        public Controller(BassPlayer player)
        {
            Log.Debug("Initializing BASS controller");
            _player = player;

            _bassLibraryManager = BassLibraryManager.Get();

            _playbackProcessor   = new PlaybackProcessor(this);
            _outputDeviceManager = new OutputDeviceManager(this);

            _mainThreadTerminated = false;

            _workItemQueue = new WorkItemQueue();

            _playerThread = new Thread(PlayerThreadMain)
            {
                Name = "BassPlay"
            };
            _playerThread.Start();

            SetVolume_Async(100);
        }
示例#6
0
    /// <summary>
    /// Initializes a new instance of the BASS player controller.
    /// </summary>
    /// <param name="player">BASS player instance which contains this controller instance.</param>
    public Controller(BassPlayer player)
    {
      Log.Debug("Initializing BASS controller");
      _player = player;

      _bassLibraryManager = BassLibraryManager.Get();

      _playbackProcessor = new PlaybackProcessor(this);
      _outputDeviceManager = new OutputDeviceManager(this);

      _mainThreadTerminated = false;

      _workItemQueue = new WorkItemQueue();

      _playerThread = new Thread(PlayerThreadMain) {Name = "BassPlay"};
      _playerThread.Start();

      SetVolume_Async(100);
    }