winealsa.drv: Be less choosey about sample rates.

This commit is contained in:
Andrew Eikum 2011-06-17 15:49:55 -05:00 committed by Alexandre Julliard
parent a93efd5346
commit c6312990ab
1 changed files with 1 additions and 6 deletions

View File

@ -1146,12 +1146,7 @@ static HRESULT WINAPI AudioClient_IsFormatSupported(IAudioClient *iface,
goto exit;
}
if(fmt->nSamplesPerSec < min || fmt->nSamplesPerSec > max ||
(fmt->nSamplesPerSec != 48000 &&
fmt->nSamplesPerSec != 44100 &&
fmt->nSamplesPerSec != 22050 &&
fmt->nSamplesPerSec != 11025 &&
fmt->nSamplesPerSec != 8000)){
if(fmt->nSamplesPerSec < min || fmt->nSamplesPerSec > max){
hr = AUDCLNT_E_UNSUPPORTED_FORMAT;
goto exit;
}