Andrew Eikum : dsound: Request that WinMM perform audio conversion if the hardware doesn' t support the requested format.
Alexandre Julliard
julliard at winehq.org
Thu Jul 14 13:08:16 CDT 2011
Module: wine
Branch: master
Commit: ca4ee7f60fef3c620c66dfa5cb3773b4073143f4
URL: http://source.winehq.org/git/wine.git/?a=commit;h=ca4ee7f60fef3c620c66dfa5cb3773b4073143f4
Author: Andrew Eikum <aeikum at codeweavers.com>
Date: Wed Jul 13 14:20:25 2011 -0500
dsound: Request that WinMM perform audio conversion if the hardware doesn't support the requested format.
---
dlls/dsound/capture.c | 2 +-
dlls/dsound/primary.c | 2 +-
2 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/dlls/dsound/capture.c b/dlls/dsound/capture.c
index f089313..174355a 100644
--- a/dlls/dsound/capture.c
+++ b/dlls/dsound/capture.c
@@ -942,7 +942,7 @@ static HRESULT IDirectSoundCaptureBufferImpl_Create(
return err;
}
} else {
- DWORD flags = CALLBACK_FUNCTION;
+ DWORD flags = CALLBACK_FUNCTION | WAVE_MAPPED;
err = mmErr(waveInOpen(&(device->hwi),
device->drvdesc.dnDevNode, device->pwfx,
(DWORD_PTR)DSOUND_capture_callback, (DWORD_PTR)device, flags));
diff --git a/dlls/dsound/primary.c b/dlls/dsound/primary.c
index aa8450f..8a87c96 100644
--- a/dlls/dsound/primary.c
+++ b/dlls/dsound/primary.c
@@ -125,7 +125,7 @@ HRESULT DSOUND_ReopenDevice(DirectSoundDevice *device, BOOL forcewave)
if (device->drvdesc.dwFlags & DSDDESC_DOMMSYSTEMOPEN)
{
- DWORD flags = CALLBACK_FUNCTION;
+ DWORD flags = CALLBACK_FUNCTION | WAVE_MAPPED;
if (device->driver)
flags |= WAVE_DIRECTSOUND;
More information about the wine-cvs
mailing list