fix waveout underruns cascading into decode underruns because the

decode buffer is smaller than the writeahead
This commit is contained in:
Glenn Maynard
2004-04-06 23:18:40 +00:00
parent 6702cfeba9
commit 3462de7511
3 changed files with 28 additions and 3 deletions
@@ -135,6 +135,9 @@ RageSound_WaveOut::RageSound_WaveOut()
buffers[b].dwFlags |= WHDR_DONE;
}
/* We have a very large writeahead; make sure we have a large enough decode
* buffer to recover cleanly from underruns. */
SetDecodeBufferSize( buffersize_frames * 3/2 );
StartDecodeThread();
MixingThread.SetName("Mixer thread");