winealsa.drv: Re-allow fallback to waveout (regression in dsound).

This commit is contained in:
Erich Hoover 2009-07-18 23:51:33 -06:00 committed by Alexandre Julliard
parent bd2b6bda6b
commit 0addd3ba5a
1 changed files with 7 additions and 0 deletions

View File

@ -927,6 +927,13 @@ DWORD wodDsCreate(UINT wDevID, PIDSDRIVER* drv)
TRACE("driver created\n");
/* the HAL isn't much better than the HEL if we can't do mmap() */
if (!(WOutDev[wDevID].outcaps.dwSupport & WAVECAPS_DIRECTSOUND))
{
WARN("MMAP not supported for this device, falling back to waveout, should be harmless\n");
return MMSYSERR_NOTSUPPORTED;
}
*idrv = HeapAlloc(GetProcessHeap(),0,sizeof(IDsDriverImpl));
if (!*idrv)
return MMSYSERR_NOMEM;