Accord.DirectSound.AudioOutputDevice.SignalToStop C# (CSharp) Method

SignalToStop() public method

Signals audio output to stop its work.
Signals audio output to stop its background thread, stop to ask for new frames and free resources.
public SignalToStop ( ) : void
return void
        public void SignalToStop()
        {
            // stop thread
            if (thread != null)
            {
                stop = true;

                for (int i = 0; i < notifications.Length; i++)
                    (notifications[i].WaitHandle as AutoResetEvent).Set();
            }
        }