[PATCH 2/2] dsound: Don't launch a separate thread for the mmdevapi enumerator

Andrew Eikum aeikum at codeweavers.com
Fri Jan 13 14:22:53 CST 2012


The idea of the separate thread was to satisfy the requirement of every
MMDevAPI device object (IAudioClient, IAudioRenderClient, IAudioClock,
etc) being created and released from the same thread[1]. However, we
weren't doing that anyway. We'd really have to create a true device
thread and send messages to that thread, like we do for WinMM. But since
I think it doesn't matter in practice for Wine right now, let's make
this less intrusive change instead.

[1]
<http://msdn.microsoft.com/en-us/library/windows/desktop/dd370873%28v=vs.85%29.aspx>
---

Fixes bug 28677.

 dlls/dsound/dsound_main.c |  138 +++++++++++++++------------------------------
 1 files changed, 46 insertions(+), 92 deletions(-)

-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0002-dsound-Don-t-launch-a-separate-thread-for-the-mmdeva.patch
Type: text/x-patch
Size: 8457 bytes
Desc: not available
URL: <http://www.winehq.org/pipermail/wine-patches/attachments/20120113/a8fff884/attachment-0001.bin>


More information about the wine-patches mailing list