From: Anton Baskanov <baskanov(a)gmail.com> --- dlls/dmsynth/synthsink.c | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/dlls/dmsynth/synthsink.c b/dlls/dmsynth/synthsink.c index bbcfc910889..e29d130c40b 100644 --- a/dlls/dmsynth/synthsink.c +++ b/dlls/dmsynth/synthsink.c @@ -332,6 +332,20 @@ static DWORD CALLBACK synth_sink_timing_thread(void *args) return hr; } + if (FAILED(hr = IDirectSoundBuffer_Stop(buffer))) + ERR("Failed to stop sound buffer, hr %#lx.\n", hr); + + if (FAILED(hr = IDirectSoundBuffer_QueryInterface(buffer, &IID_IDirectSoundNotify, + (void **)¬ify))) + ERR("Failed to query IDirectSoundNotify iface, hr %#lx.\n", hr); + else + { + if (FAILED(hr = IDirectSoundNotify_SetNotificationPositions(notify, 0, NULL))) + ERR("Failed to set notification positions, hr %#lx\n", hr); + + IDirectSoundNotify_Release(notify); + } + IDirectSoundBuffer_Release(buffer); CloseHandle(buffer_event); -- GitLab https://gitlab.winehq.org/wine/wine/-/merge_requests/9651