From fabbebf94b099ed221fa67b647e86c3d05a1b2f2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=B6rg=20H=C3=B6hle?= Date: Thu, 8 Sep 2011 14:21:21 +0200 Subject: [PATCH] wineoss: Simplify the test for 8bit linear PCM. --- dlls/wineoss.drv/mmdevdrv.c | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/dlls/wineoss.drv/mmdevdrv.c b/dlls/wineoss.drv/mmdevdrv.c index b7e3bbfec63..d2d5e750933 100644 --- a/dlls/wineoss.drv/mmdevdrv.c +++ b/dlls/wineoss.drv/mmdevdrv.c @@ -1196,11 +1196,7 @@ static HRESULT WINAPI AudioClient_GetDevicePeriod(IAudioClient *iface, static void oss_silence_buffer(ACImpl *This, BYTE *buf, UINT32 frames) { - WAVEFORMATEXTENSIBLE *fmtex = (WAVEFORMATEXTENSIBLE*)This->fmt; - if((This->fmt->wFormatTag == WAVE_FORMAT_PCM || - (This->fmt->wFormatTag == WAVE_FORMAT_EXTENSIBLE && - IsEqualGUID(&fmtex->SubFormat, &KSDATAFORMAT_SUBTYPE_PCM))) && - This->fmt->wBitsPerSample == 8) + if(This->fmt->wBitsPerSample == 8) memset(buf, 128, frames * This->fmt->nBlockAlign); else memset(buf, 0, frames * This->fmt->nBlockAlign);