Don't try to find alternate formats for non PCM formats.

This commit is contained in:
Robert Reif 2004-08-19 01:07:49 +00:00 committed by Alexandre Julliard
parent ece5e478fe
commit c710121132
1 changed files with 1 additions and 1 deletions

View File

@ -188,7 +188,7 @@ static DWORD wodOpen(LPDWORD lpdwUser, LPWAVEOPENDESC lpDesc, DWORD dwFlags)
}
}
if ((dwFlags & WAVE_FORMAT_DIRECT) == 0) {
if ((dwFlags & WAVE_FORMAT_DIRECT) == 0 && lpDesc->lpFormat->wFormatTag == WAVE_FORMAT_PCM) {
WAVEFORMATEX wfx;
wfx.wFormatTag = WAVE_FORMAT_PCM;