/// <summary>
        /// Sets the Bass inputstream and initializes the outputdevice.
        /// </summary>
        /// <param name="stream">The stream delivering the input data for this output device.</param>
        /// <param name="passThrough">Sets the passthrough mode.</param>
        public void SetInputStream(BassStream stream, bool passThrough)
        {
            Log.Debug("OutputDeviceManager.SetInputStream()");

            ResetInputStream();

            Log.Debug("Instantiating output device");
            _OutputDevice = _OutputDeviceFactory.CreateOutputDevice();

            Log.Debug("Calling SetInputStream()");
            _OutputDevice.SetInputStream(stream, passThrough);
            _Initialized = true;
        }
Пример #2
0
    /// <summary>
    /// Sets the Bass inputstream and initializes the outputdevice.
    /// </summary>
    /// <param name="stream">The stream delivering the input data for this output device.</param>
    /// <param name="passThrough">Sets the passthrough mode.</param>
    public void SetInputStream(BassStream stream, bool passThrough)
    {
      Log.Debug("OutputDeviceManager.SetInputStream()");

      ResetInputStream();

      Log.Debug("Instantiating output device");
      _outputDevice = _outputDeviceFactory.CreateOutputDevice();

      Log.Debug("Calling SetInputStream()");
      _outputDevice.SetInputStream(stream, passThrough);
      _initialized = true;
    }