Commit ca4ee7f6 authored by Andrew Eikum's avatar Andrew Eikum Committed by Alexandre Julliard

dsound: Request that WinMM perform audio conversion if the hardware doesn't…

dsound: Request that WinMM perform audio conversion if the hardware doesn't support the requested format.
parent 2174717f
......@@ -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));
......
......@@ -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;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment