From ff0ff663c33da632ff6327ec67f5bd31f528981b Mon Sep 17 00:00:00 2001 From: Ken Thomases Date: Sat, 11 Apr 2009 07:18:10 -0500 Subject: [PATCH] winecoreaudio: Eliminate some unnecessary code. The WAVE_DIRECTSOUND bit of dwFlags isn't examined, so no point in correcting it. --- dlls/winecoreaudio.drv/audio.c | 5 ----- 1 file changed, 5 deletions(-) diff --git a/dlls/winecoreaudio.drv/audio.c b/dlls/winecoreaudio.drv/audio.c index b6f55b84b41..2735fb73d08 100644 --- a/dlls/winecoreaudio.drv/audio.c +++ b/dlls/winecoreaudio.drv/audio.c @@ -826,11 +826,6 @@ static DWORD wodOpen(WORD wDevID, LPWAVEOPENDESC lpDesc, DWORD dwFlags) return MMSYSERR_ERROR; } - if ((dwFlags & WAVE_DIRECTSOUND) && - !(wwo->caps.dwSupport & WAVECAPS_DIRECTSOUND)) - /* not supported, ignore it */ - dwFlags &= ~WAVE_DIRECTSOUND; - streamFormat.mFormatID = kAudioFormatLinearPCM; streamFormat.mFormatFlags = kLinearPCMFormatFlagIsPacked; /* FIXME check for 32bits float -> kLinearPCMFormatFlagIsFloat */ -- 2.11.4.GIT