Commit cdbd17bd authored by Maarten Lankhorst's avatar Maarten Lankhorst Committed by Alexandre Julliard

dsound: Make hardware acceleration work again.

parent 84cf17c3
......@@ -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 */
......
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