lock in RageSound::Update

This commit is contained in:
Glenn Maynard
2004-01-22 06:13:31 +00:00
parent 397e5beed5
commit 2a7285ea77
+3 -1
View File
@@ -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));
}