dsound: PrimarySetFormat patch,
dsound does not properly support audio > 2 channels
Dylan Taft
d13f00l at gmail.com
Mon Apr 30 05:59:50 CDT 2007
diff --git a/dlls/dsound/primary.c b/dlls/dsound/primary.c
index 0725bd2..a90be62 100644
--- a/dlls/dsound/primary.c
+++ b/dlls/dsound/primary.c
@@ -347,6 +347,10 @@ HRESULT DSOUND_PrimarySetFormat(DirectSo
wfex->wBitsPerSample, wfex->cbSize);
/* **** */
+ if (wfex->nChannels > 2) {
+ FIXME("Currently only supports 2 channels");
+ return DSERR_BADFORMAT;
+ }
RtlAcquireResourceExclusive(&(device->buffer_list_lock), TRUE);
EnterCriticalSection(&(device->mixlock));
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.winehq.org/pipermail/wine-patches/attachments/20070430/7a1306a3/attachment.htm
More information about the wine-patches
mailing list