sapi: Free completed buffers asynchronously in SpMMAudio.
commit7bced2878a55d388beaeae76d58d693391e4de24
authorShaun Ren <sren@codeweavers.com>
Wed, 31 May 2023 03:29:22 +0000 (30 23:29 -0400)
committerAlexandre Julliard <julliard@winehq.org>
Wed, 14 Jun 2023 16:53:36 +0000 (14 18:53 +0200)
treecde1cf5abaa4e312c83a9b9d31dd34403d56d77d
parent107d95165a0902828124bb1d9bf5adda987c9810
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
dlls/sapi/async.c [new file with mode: 0644]
dlls/sapi/mmaudio.c
dlls/sapi/sapi_private.h