diff --git a/fluidsynth/src/fluid_dsound.c b/fluidsynth/src/fluid_dsound.c index 83c0e83e..d28ec30b 100644 --- a/fluidsynth/src/fluid_dsound.c +++ b/fluidsynth/src/fluid_dsound.c @@ -324,7 +324,7 @@ DWORD WINAPI fluid_dsound_audio_run(LPVOID lpParameter) } /* 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) { cur_position -= dev->queue_byte_size;