private void restartTrack() { bass.RunOnAudioThread(() => { track.Restart(); bass.Update(); }); }
private void restartTrack() { runOnAudioThread(() => { track.Restart(); track.Update(); }); }
private void restartTrack() { var resetEvent = new ManualResetEventSlim(false); Task.Run(() => { track.Restart(); track.Update(); resetEvent.Set(); }); while (!resetEvent.IsSet) { track.Update(); } }