=?UTF-8?Q?J=C3=B6rg=20H=C3=B6hle=20?=: wineoss: Simplify the test for 8bit linear PCM.

Alexandre Julliard julliard at winehq.org
Mon Sep 26 16:15:12 CDT 2011


Module: wine
Branch: master
Commit: fabbebf94b099ed221fa67b647e86c3d05a1b2f2
URL:    http://source.winehq.org/git/wine.git/?a=commit;h=fabbebf94b099ed221fa67b647e86c3d05a1b2f2

Author: Jörg Höhle <hoehle at users.sourceforge.net>
Date:   Thu Sep  8 14:21:21 2011 +0200

wineoss: Simplify the test for 8bit linear PCM.

---

 dlls/wineoss.drv/mmdevdrv.c |    6 +-----
 1 files changed, 1 insertions(+), 5 deletions(-)

diff --git a/dlls/wineoss.drv/mmdevdrv.c b/dlls/wineoss.drv/mmdevdrv.c
index b7e3bbf..d2d5e75 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);




More information about the wine-cvs mailing list