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

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

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