mirror of
git://source.winehq.org/git/wine.git
synced 2024-11-05 18:01:34 +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
2 changed files with 2 additions and 2 deletions
|
@ -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…
Reference in a new issue