=?UTF-8?Q?J=C3=B6rg=20H=C3=B6hle=20?=: winealsa: 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: 386f7639f3915ceaf341cad5fe2cce6d9d8b8718
URL: http://source.winehq.org/git/wine.git/?a=commit;h=386f7639f3915ceaf341cad5fe2cce6d9d8b8718
Author: Jörg Höhle <hoehle at users.sourceforge.net>
Date: Tue Aug 16 10:12:48 2011 +0200
winealsa: Simplify the test for 8bit linear PCM.
---
dlls/winealsa.drv/mmdevdrv.c | 6 +-----
1 files changed, 1 insertions(+), 5 deletions(-)
diff --git a/dlls/winealsa.drv/mmdevdrv.c b/dlls/winealsa.drv/mmdevdrv.c
index 8118103..aa68865 100644
--- a/dlls/winealsa.drv/mmdevdrv.c
+++ b/dlls/winealsa.drv/mmdevdrv.c
@@ -2076,11 +2076,7 @@ static HRESULT WINAPI AudioRenderClient_ReleaseBuffer(
buffer = This->tmp_buffer;
if(flags & AUDCLNT_BUFFERFLAGS_SILENT){
- 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(buffer, 128, written_frames * This->fmt->nBlockAlign);
else
memset(buffer, 0, written_frames * This->fmt->nBlockAlign);
More information about the wine-cvs
mailing list