[PATCH 1/9] dsound: Request that WinMM perform audio conversion if the hardware doesn't support the requested format

Andrew Eikum aeikum at codeweavers.com
Tue Jul 12 14:39:37 CDT 2011

Prior to this patch, dsound will fail if the user requests a format that
the hardware does not directly support. According to the tests
(ds3d.c:434), IDirectSoundBuffer::SetFormat() should always succeed,
even if a format isn't directly supported. So, we should specify the
WAVE_MAPPED flag to wave{Out,In}Open in order to request that WinMM
convert the audio for us if the hardware doesn't directly support it.


I'm not sure if this is the cause of your crash, Alexandre. If not, 
could you reply with a +winmm,+dsound,+alsa,+mmdevapi log of the dsound 
capture test, after applying patches 1-4?

  dlls/dsound/capture.c |    2 +-
  dlls/dsound/primary.c |    2 +-
  2 files changed, 2 insertions(+), 2 deletions(-)

-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-dsound-Request-that-WinMM-perform-audio-conversion-i.patch
Type: text/x-patch
Size: 976 bytes
Desc: not available
URL: <http://www.winehq.org/pipermail/wine-patches/attachments/20110712/e3e8ac3d/attachment.bin>

More information about the wine-patches mailing list