lock StreamingSound.Stop for consistency

pull/47/head
cosmonaut 2023-03-07 15:25:55 -08:00
parent 771e6c234b
commit abfcdb975d
1 changed files with 5 additions and 2 deletions

View File

@ -83,10 +83,13 @@ namespace MoonWorks.Audio
}
public override void Stop()
{
lock (StateLock)
{
ConsumingBuffers = false;
State = SoundState.Stopped;
}
}
public override void StopImmediate()
{