mirror of
https://github.com/reactos/wine.git
synced 2025-02-03 10:43:30 +00:00
dsound: Request that WinMM perform audio conversion if the hardware doesn't support the requested format.
This commit is contained in:
parent
2174717fbd
commit
ca4ee7f60f
@ -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;
|
||||
|
Loading…
x
Reference in New Issue
Block a user