diff --git a/stepmania/src/RageSound.cpp b/stepmania/src/RageSound.cpp index 015a9d9a5b..b1288e8a77 100644 --- a/stepmania/src/RageSound.cpp +++ b/stepmania/src/RageSound.cpp @@ -225,7 +225,9 @@ void RageSound::SetLengthSeconds(float secs) * we read data; the sound thread will always read more if it's needed. */ void RageSound::Update(float delta) { - if(playing && delta) + LockMut(SOUNDMAN->lock); + + if( playing && delta ) FillBuf(int(delta * GetSampleRate() * samplesize)); }