dsound: Request that WinMM perform audio conversion if the hardware doesn't support the requested format.

This commit is contained in:
Andrew Eikum 2011-07-13 14:20:25 -05:00 committed by Alexandre Julliard
parent 2174717fbd
commit ca4ee7f60f
2 changed files with 2 additions and 2 deletions

View file

@ -942,7 +942,7 @@ static HRESULT IDirectSoundCaptureBufferImpl_Create(
return err; return err;
} }
} else { } else {
DWORD flags = CALLBACK_FUNCTION; DWORD flags = CALLBACK_FUNCTION | WAVE_MAPPED;
err = mmErr(waveInOpen(&(device->hwi), err = mmErr(waveInOpen(&(device->hwi),
device->drvdesc.dnDevNode, device->pwfx, device->drvdesc.dnDevNode, device->pwfx,
(DWORD_PTR)DSOUND_capture_callback, (DWORD_PTR)device, flags)); (DWORD_PTR)DSOUND_capture_callback, (DWORD_PTR)device, flags));

View file

@ -125,7 +125,7 @@ HRESULT DSOUND_ReopenDevice(DirectSoundDevice *device, BOOL forcewave)
if (device->drvdesc.dwFlags & DSDDESC_DOMMSYSTEMOPEN) if (device->drvdesc.dwFlags & DSDDESC_DOMMSYSTEMOPEN)
{ {
DWORD flags = CALLBACK_FUNCTION; DWORD flags = CALLBACK_FUNCTION | WAVE_MAPPED;
if (device->driver) if (device->driver)
flags |= WAVE_DIRECTSOUND; flags |= WAVE_DIRECTSOUND;