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

            _soundOutput.StopSound();

            _outputProvider = null;

            Global.SoundMaxBufferDeficitMs = 0;

            IsStarted = false;
        }
예제 #2
0
        public void StopSound()
        {
            if (!IsStarted)
            {
                return;
            }

            _outputDevice.StopSound();

            _bufferedProvider?.DiscardSamples();

            SoundMaxBufferDeficitMs = 0;

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

            _outputDevice.StopSound();

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

            Global.SoundMaxBufferDeficitMs = 0;

            IsStarted = false;
        }