reduce the sleep

This commit is contained in:
Glenn Maynard
2003-01-24 01:34:25 +00:00
parent ce153ecccb
commit 5c20ab433a
@@ -53,9 +53,7 @@ void RageSound_DSound::MixerThread()
while(!shutdown) {
VDCHECKPOINT;
/* Sleep for half of a buffer size. (GetPCM() can take a bit
* of CPU if we call it too much and we're playing a lot of sounds.) */
float sleep_secs = (float(buffersize_frames/2) / samplerate);
float sleep_secs = (float(chunksize/2) / samplerate);
Sleep(int(1000 * sleep_secs));
VDCHECKPOINT;