winecoreaudio: Accept up to 8 channels.

This commit is contained in:
Jörg Höhle 2009-10-05 10:34:24 +02:00 committed by Alexandre Julliard
parent 55fca7778b
commit b16fc0e163

View file

@ -449,7 +449,7 @@ static BOOL supportedFormat(LPWAVEFORMATEX wf)
WAVEFORMATEXTENSIBLE * wfex = (WAVEFORMATEXTENSIBLE *)wf;
if (wf->cbSize == 22 && IsEqualGUID(&wfex->SubFormat, &KSDATAFORMAT_SUBTYPE_PCM)) {
if (wf->nChannels >=1 && wf->nChannels <= 2) {
if (wf->nChannels >=1 && wf->nChannels <= 8) {
if (wf->wBitsPerSample==wfex->Samples.wValidBitsPerSample) {
if (wf->wBitsPerSample==8||wf->wBitsPerSample==16)
return TRUE;