fix busy looping in the null sound driver

This commit is contained in:
Glenn Maynard
2003-03-17 20:05:49 +00:00
parent e6e271f790
commit d95c8885db
@@ -30,8 +30,8 @@ void RageSound_Null::MixerThread()
RageTimer Speaker;
while(!shutdown) {
float delay_ms = float(buffersize_frames) / samplerate;
SDL_Delay(int(delay_ms / 2));
const int delay_ms = 1000 * buffersize_frames / samplerate;
SDL_Delay(delay_ms / 2);
LockMutex L(SOUNDMAN->lock);