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

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