buffersize fix

This commit is contained in:
Glenn Maynard
2004-01-22 07:51:38 +00:00
parent 08b081bbf8
commit 46a5d99ca9
@@ -143,6 +143,7 @@ DSoundBuf::DSoundBuf(DSound &ds, DSoundBuf::hw hardware,
/* The size of the actual DSound buffer. This can be large; we generally
* won't fill it completely. */
buffersize = 1024*64;
buffersize = min( buffersize, writeahead );
WAVEFORMATEX waveformat;
memset(&waveformat, 0, sizeof(waveformat));