Пример #1
0
 private void restartTrack()
 {
     bass.RunOnAudioThread(() =>
     {
         track.Restart();
         bass.Update();
     });
 }
Пример #2
0
 private void restartTrack()
 {
     runOnAudioThread(() =>
     {
         track.Restart();
         track.Update();
     });
 }
Пример #3
0
        private void restartTrack()
        {
            var resetEvent = new ManualResetEventSlim(false);

            Task.Run(() =>
            {
                track.Restart();
                track.Update();
                resetEvent.Set();
            });

            while (!resetEvent.IsSet)
            {
                track.Update();
            }
        }