Bug in unlock sound buffer

This commit is contained in:
Peter Hanappe 2003-04-04 17:40:01 +00:00
parent 2221c57ce8
commit e48b65def0

View file

@ -324,7 +324,7 @@ DWORD WINAPI fluid_dsound_audio_run(LPVOID lpParameter)
} }
/* Unlock */ /* Unlock */
IDirectSoundCaptureBuffer_Unlock(dev->sec_buffer, buf1, bytes1, buf2, bytes2); IDirectSoundBuffer_Unlock(dev->sec_buffer, buf1, bytes1, buf2, bytes2);
if (cur_position >= dev->queue_byte_size) { if (cur_position >= dev->queue_byte_size) {
cur_position -= dev->queue_byte_size; cur_position -= dev->queue_byte_size;