Ejemplo n.º 1
0
        /// <summary>
        /// Starts playback.
        /// </summary>
        public void StartDevice()
        {
            Log.Debug("OutputDeviceManager.StartDevice()");

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

            if (_OutputDevice.DeviceState == DeviceState.Stopped)
            {
                Log.Debug("OutputDevice: PrepareFadeIn()");
                _OutputDevice.PrepareFadeIn();

                Log.Debug("OutputDevice: Start()");
                _OutputDevice.Start();

                Log.Debug("OutputDevice: FadeIn()");
                _OutputDevice.FadeIn(true);
            }
        }