winecoreaudio: Report format error on sample rate mismatch when opening wave-in device.

This commit is contained in:
Ken Thomases 2007-07-13 07:21:49 -05:00 committed by Alexandre Julliard
parent 41303fbd6a
commit f203ed946b
1 changed files with 2 additions and 1 deletions

View File

@ -1805,7 +1805,8 @@ static DWORD widOpen(WORD wDevID, LPWAVEOPENDESC lpDesc, DWORD dwFlags)
if (lpDesc->lpFormat->wFormatTag != WAVE_FORMAT_PCM ||
lpDesc->lpFormat->nChannels == 0 ||
lpDesc->lpFormat->nSamplesPerSec == 0
lpDesc->lpFormat->nSamplesPerSec == 0 ||
lpDesc->lpFormat->nSamplesPerSec != AudioUnit_GetInputDeviceSampleRate()
)
{
WARN("Bad format: tag=%04X nChannels=%d nSamplesPerSec=%d wBitsPerSample=%d !\n",