Beispiel #1
0
        public void StopSound()
        {
            if (!IsStarted)
            {
                return;
            }

            _soundOutput.StopSound();

            _outputProvider = null;

            Global.SoundMaxBufferDeficitMs = 0;

            IsStarted = false;
        }
        public void StopSound()
        {
            if (!IsStarted)
            {
                return;
            }

            _outputDevice.StopSound();

            _bufferedProvider?.DiscardSamples();

            SoundMaxBufferDeficitMs = 0;

            IsStarted = false;
        }
Beispiel #3
0
        public void StopSound()
        {
            if (!IsStarted)
            {
                return;
            }

            _outputDevice.StopSound();

            if (_bufferedProvider != null)
            {
                _bufferedProvider.DiscardSamples();
            }

            Global.SoundMaxBufferDeficitMs = 0;

            IsStarted = false;
        }