Exemplo n.º 1
0
        public bool Stop()
        {
            bool flag = true;
            int  num  = BassWasapi.BASS_WASAPI_GetDevice();

            if (num != this._device)
            {
                flag &= BassWasapi.BASS_WASAPI_SetDevice(this._device);
            }
            if (flag && BassWasapi.BASS_WASAPI_IsStarted())
            {
                flag &= BassWasapi.BASS_WASAPI_Stop(true);
            }
            BassWasapi.BASS_WASAPI_SetDevice(num);
            return(flag);
        }