/// <summary>
        /// Stops playback.
        /// </summary>
        public void StopDevice(bool waitForFadeOut)
        {
            Log.Debug("OutputDeviceManager.StopDevice()");

            if (!_Initialized)
            {
                throw new BassPlayerException("OutputDeviceManager not initialized");
            }

            if (_OutputDevice.DeviceState == DeviceState.Started)
            {
                Log.Debug("Calling FadeOut()");
                _OutputDevice.FadeOut(!waitForFadeOut);

                Log.Debug("Calling Stop()");
                _OutputDevice.Stop();
            }
        }