mirror of
https://github.com/reactos/wine.git
synced 2024-11-25 04:39:45 +00:00
dsound: Make hardware acceleration work again.
This commit is contained in:
parent
84cf17c3e9
commit
cdbd17bdb8
@ -1584,7 +1584,7 @@ HRESULT DirectSoundCaptureDevice_Initialize(
|
||||
|
||||
/* Disable the direct sound driver to force emulation if requested. */
|
||||
device->driver = NULL;
|
||||
if (ds_hw_accel > DS_HW_ACCEL_EMULATION)
|
||||
if (ds_hw_accel != DS_HW_ACCEL_EMULATION)
|
||||
{
|
||||
err = mmErr(waveInMessage((HWAVEIN)wid,DRV_QUERYDSOUNDIFACE,(DWORD_PTR)&(device->driver),0));
|
||||
if ( (err != DS_OK) && (err != DSERR_UNSUPPORTED) ) {
|
||||
@ -1594,7 +1594,6 @@ HRESULT DirectSoundCaptureDevice_Initialize(
|
||||
}
|
||||
err = DS_OK;
|
||||
|
||||
|
||||
/* Get driver description */
|
||||
if (device->driver) {
|
||||
TRACE("using DirectSound driver\n");
|
||||
|
@ -1414,7 +1414,7 @@ HRESULT DirectSoundDevice_Initialize(DirectSoundDevice ** ppDevice, LPCGUID lpcG
|
||||
device->driver = NULL;
|
||||
|
||||
/* DRV_QUERYDSOUNDIFACE is a "Wine extension" to get the DSound interface */
|
||||
if (ds_hw_accel > DS_HW_ACCEL_EMULATION)
|
||||
if (ds_hw_accel != DS_HW_ACCEL_EMULATION)
|
||||
waveOutMessage((HWAVEOUT)wod, DRV_QUERYDSOUNDIFACE, (DWORD_PTR)&device->driver, 0);
|
||||
|
||||
/* Get driver description */
|
||||
|
Loading…
Reference in New Issue
Block a user