lock StreamingSound.Stop for consistency
parent
771e6c234b
commit
abfcdb975d
|
@ -83,10 +83,13 @@ namespace MoonWorks.Audio
|
||||||
}
|
}
|
||||||
|
|
||||||
public override void Stop()
|
public override void Stop()
|
||||||
|
{
|
||||||
|
lock (StateLock)
|
||||||
{
|
{
|
||||||
ConsumingBuffers = false;
|
ConsumingBuffers = false;
|
||||||
State = SoundState.Stopped;
|
State = SoundState.Stopped;
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
public override void StopImmediate()
|
public override void StopImmediate()
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in New Issue