mirror of https://github.com/ppy/osu
Remove manual audio thread synchronisation logic
No longer required as calls are blocking.
This commit is contained in:
parent
e3b31f0191
commit
87e790080b
|
@ -13,7 +13,6 @@
|
||||||
using osu.Game.Graphics;
|
using osu.Game.Graphics;
|
||||||
using OpenTK;
|
using OpenTK;
|
||||||
using OpenTK.Graphics;
|
using OpenTK.Graphics;
|
||||||
using System.Threading;
|
|
||||||
|
|
||||||
namespace osu.Game.Overlays.Music
|
namespace osu.Game.Overlays.Music
|
||||||
{
|
{
|
||||||
|
@ -153,11 +152,6 @@ private void playSpecified(BeatmapInfo info)
|
||||||
var track = beatmapBacking.Value.Track;
|
var track = beatmapBacking.Value.Track;
|
||||||
|
|
||||||
track.Restart();
|
track.Restart();
|
||||||
|
|
||||||
// this is temporary until we have blocking (async.Wait()) audio component methods.
|
|
||||||
// then we can call RestartAsync().Wait() or the blocking version above.
|
|
||||||
while (!track.IsRunning)
|
|
||||||
Thread.Sleep(1);
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -327,11 +327,6 @@ protected override void OnEntering(Screen last)
|
||||||
{
|
{
|
||||||
adjustableSourceClock.Reset();
|
adjustableSourceClock.Reset();
|
||||||
|
|
||||||
// this is temporary until we have blocking (async.Wait()) audio component methods.
|
|
||||||
// then we can call ResetAsync().Wait() or the blocking version above.
|
|
||||||
while (adjustableSourceClock.IsRunning)
|
|
||||||
Thread.Sleep(1);
|
|
||||||
|
|
||||||
Schedule(() =>
|
Schedule(() =>
|
||||||
{
|
{
|
||||||
decoupledClock.ChangeSource(adjustableSourceClock);
|
decoupledClock.ChangeSource(adjustableSourceClock);
|
||||||
|
|
Loading…
Reference in New Issue