winecoreaudio: Push notify of completions from render callback to message thread.
commitd5975872af50aa8c318513961be090c44b1486f2
authorKen Thomases <ken@codeweavers.com>
Thu, 21 Dec 2006 09:49:43 +0000 (21 03:49 -0600)
committerAlexandre Julliard <julliard@winehq.org>
Thu, 21 Dec 2006 11:00:36 +0000 (21 12:00 +0100)
tree7f47b2553f59378acf21204ed79d8b434757d190
parente24533cb6df59587ed26bfa0e8d40f2735ff2be1
winecoreaudio: Push notify of completions from render callback to message thread.

Rather than have the Audio Unit render callback traverse the queue of wave
headers looking for complete ones, and sending a message to the message thread
for each one it finds, just send one message to tell the message thread to do
that work itself.  The render callback is called in a real-time priority
thread and is expected to return as quickly as possible.
dlls/winmm/winecoreaudio/audio.c