hopefully fix some skips in DSound (sleep calculation was giving

results higher than I intended)
This commit is contained in:
Glenn Maynard
2003-03-17 20:02:20 +00:00
parent a561c10189
commit e6e271f790
@@ -49,7 +49,9 @@ void RageSound_DSound::MixerThread()
while(!shutdown) {
VDCHECKPOINT;
float sleep_secs = (float(chunksize/2) / samplerate);
/* Sleep for the size of one chunk. */
const int chunksize_frames = buffersize_frames / num_chunks;
float sleep_secs = (float(chunksize_frames) / samplerate);
Sleep(int(1000 * sleep_secs));
VDCHECKPOINT;