Ejemplo n.º 1
0
        public void StopSound()
        {
            if (!IsStarted)
            {
                return;
            }

            _soundOutput.StopSound();

            _outputProvider = null;

            Global.SoundMaxBufferDeficitMs = 0;

            IsStarted = false;
        }
Ejemplo n.º 2
0
        public void StopSound()
        {
            if (!IsStarted)
            {
                return;
            }

            _outputDevice.StopSound();

            _bufferedProvider?.DiscardSamples();

            SoundMaxBufferDeficitMs = 0;

            IsStarted = false;
        }
Ejemplo n.º 3
0
        public void StopSound()
        {
            if (!IsStarted)
            {
                return;
            }

            _outputDevice.StopSound();

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

            Global.SoundMaxBufferDeficitMs = 0;

            IsStarted = false;
        }