improved direct sound multiple device support

Robert Reif reif at earthlink.net
Thu Mar 13 17:51:01 CST 2003


This patch adds multiple direct sound device support.
You can now enumerate over all the sound devices and
select one based on it's GUID.

This patch uncovers a bug in the direct sound driver which
has problems when switching between devices quickly.
The problem shows up when running the test program
with multiple sound devices or by using DXCapsViewer
from the DXSDK and switching between devices quickly.
There is no problem when running in emulation mode. ALSA
should work because it only supports one device.

I tried to track down this problem without success.  It seems
a timer callback is called after a device is closed using the old
device data.  This causes a problems because either the device
is closed or a different device is open. I tried to apply the fixes
from winex for this problem and it makes it better but doesn't
solve it. They are not included in this patch because they didn't
fix the problem.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: winmm.diff
Type: application/x-unknown-content-type-diff_auto_file
Size: 754 bytes
Desc: not available
Url : http://www.winehq.org/pipermail/wine-patches/attachments/20030313/312bebe6/winmm.bin
-------------- next part --------------
A non-text attachment was scrubbed...
Name: include.diff
Type: application/x-unknown-content-type-diff_auto_file
Size: 451 bytes
Desc: not available
Url : http://www.winehq.org/pipermail/wine-patches/attachments/20030313/312bebe6/include.bin
-------------- next part --------------
A non-text attachment was scrubbed...
Name: samples.diff
Type: application/x-unknown-content-type-diff_auto_file
Size: 989 bytes
Desc: not available
Url : http://www.winehq.org/pipermail/wine-patches/attachments/20030313/312bebe6/samples.bin
-------------- next part --------------
A non-text attachment was scrubbed...
Name: winealsa.diff
Type: application/x-unknown-content-type-diff_auto_file
Size: 2681 bytes
Desc: not available
Url : http://www.winehq.org/pipermail/wine-patches/attachments/20030313/312bebe6/winealsa.bin
-------------- next part --------------
A non-text attachment was scrubbed...
Name: wineoss.diff
Type: application/x-unknown-content-type-diff_auto_file
Size: 28363 bytes
Desc: not available
Url : http://www.winehq.org/pipermail/wine-patches/attachments/20030313/312bebe6/wineoss.bin
-------------- next part --------------
A non-text attachment was scrubbed...
Name: dsound.diff
Type: application/x-unknown-content-type-diff_auto_file
Size: 22369 bytes
Desc: not available
Url : http://www.winehq.org/pipermail/wine-patches/attachments/20030313/312bebe6/dsound.bin


More information about the wine-patches mailing list