void DisposeOf( ref IAudioOutput output, ref Thread thread )
        {
            if( output == null ) return;
            output.Stop();
            thread.Join();

            output.Dispose();
            output = null;
            thread = null;
        }
Esempio n. 2
0
        void DisposeOf(ref IAudioOutput output, ref Thread thread)
        {
            if (output == null)
            {
                return;
            }
            output.Stop();
            thread.Join();

            output.Dispose();
            output = null;
            thread = null;
        }
Esempio n. 3
0
 public void Stop()
 {
     audioOutput?.Stop();
     audioOutput?.Reset();
     currentStream = null;
 }
Esempio n. 4
0
 public override void EndRun()
 {
     engine.HasToQuit = true;
     audioDriver.Stop();
     base.EndRun();
 }