Module: wine Branch: master Commit: 7bced2878a55d388beaeae76d58d693391e4de24 URL: https://gitlab.winehq.org/wine/wine/-/commit/7bced2878a55d388beaeae76d58d693...
Author: Shaun Ren sren@codeweavers.com Date: Tue May 30 23:29:22 2023 -0400
sapi: Free completed buffers asynchronously in SpMMAudio.
Also introduce async helpers.
The buffers cannot be freed directly in wave_out_proc, because calling waveOut related functions in the callback could cause a deadlock.
---
dlls/sapi/Makefile.in | 1 + dlls/sapi/async.c | 175 +++++++++++++++++++++++++++++++++++++++++++++++ dlls/sapi/mmaudio.c | 78 ++++++++++++++++++++- dlls/sapi/sapi_private.h | 24 +++++++ 4 files changed, 277 insertions(+), 1 deletion(-)