fix busy looping on slower systems, inefficient buffer filling

This commit is contained in:
Glenn Maynard
2005-11-28 17:17:35 +00:00
parent c2e84323b1
commit b6ba17a7bb
@@ -544,6 +544,7 @@ bool DSoundBuf::get_output_buf( char **pBuffer, unsigned *pBufferSize, int iChun
return false;
int iNumBytesEmpty = m_iWriteAhead - m_iBufferBytesFilled;
iNumBytesEmpty = QuantizeUp( iNumBytesEmpty, iChunksize );
// LOG->Trace("gave %i at %i (%i, %i) %i filled", iNumBytesEmpty, m_iWriteCursor, cursor, write, m_iBufferBytesFilled);