From ca4ee7f60fef3c620c66dfa5cb3773b4073143f4 Mon Sep 17 00:00:00 2001 From: Andrew Eikum Date: Wed, 13 Jul 2011 14:20:25 -0500 Subject: [PATCH] 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 f089313027d..174355a22f5 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 aa8450f425d..8a87c966646 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;