dsound: Make hardware acceleration work again.

This commit is contained in:
Maarten Lankhorst 2007-08-07 11:00:17 +02:00 committed by Alexandre Julliard
parent 84cf17c3e9
commit cdbd17bdb8
2 changed files with 2 additions and 3 deletions

View file

@ -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");

View file

@ -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 */