Maarten Lankhorst : quartz: Fix ACMWrapper to allow mono channels too.
Alexandre Julliard
julliard at winehq.org
Wed Oct 22 07:59:56 CDT 2008
Module: wine
Branch: master
Commit: ca0db5880800b7cff77c0f525d63780a8165b9a4
URL: http://source.winehq.org/git/wine.git/?a=commit;h=ca0db5880800b7cff77c0f525d63780a8165b9a4
Author: Maarten Lankhorst <maarten at codeweavers.com>
Date: Tue Oct 21 12:50:12 2008 +0200
quartz: Fix ACMWrapper to allow mono channels too.
---
dlls/quartz/acmwrapper.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/dlls/quartz/acmwrapper.c b/dlls/quartz/acmwrapper.c
index f395f82..3c6c28e 100644
--- a/dlls/quartz/acmwrapper.c
+++ b/dlls/quartz/acmwrapper.c
@@ -262,7 +262,7 @@ static HRESULT ACMWrapper_ConnectInput(InputPin *pin, const AM_MEDIA_TYPE * pmt)
This->pWfOut = (WAVEFORMATEX*)outpmt->pbFormat;
This->pWfOut->wFormatTag = WAVE_FORMAT_PCM;
This->pWfOut->wBitsPerSample = 16;
- This->pWfOut->nBlockAlign = 4;
+ This->pWfOut->nBlockAlign = This->pWfOut->wBitsPerSample * This->pWfOut->nChannels / 8;
This->pWfOut->cbSize = 0;
This->pWfOut->nAvgBytesPerSec = This->pWfOut->nChannels * This->pWfOut->nSamplesPerSec
* (This->pWfOut->wBitsPerSample/8);
More information about the wine-cvs
mailing list