void DisposeOf( ref IAudioOutput output, ref Thread thread ) { if( output == null ) return; output.Stop(); thread.Join(); output.Dispose(); output = null; thread = null; }
void DisposeOf(ref IAudioOutput output, ref Thread thread) { if (output == null) { return; } output.Stop(); thread.Join(); output.Dispose(); output = null; thread = null; }
public void Stop() { audioOutput?.Stop(); audioOutput?.Reset(); currentStream = null; }
public override void EndRun() { engine.HasToQuit = true; audioDriver.Stop(); base.EndRun(); }