Skip to content

Instantly share code, notes, and snippets.

@jmccrohan
Created May 27, 2012 20:21
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jmccrohan/2815752 to your computer and use it in GitHub Desktop.
Save jmccrohan/2815752 to your computer and use it in GitHub Desktop.
Wine 1.3.25+ 5.1 Surround
--- a/dlls/winealsa.drv/mmdevdrv.c
+++ b/dlls/winealsa.drv/mmdevdrv.c
@@ -1372,7 +1372,7 @@ static HRESULT WINAPI AudioClient_IsForm
goto exit;
}
if(max > 8)
- max = 2;
+ max = 6;
if(fmt->nChannels > max){
hr = S_FALSE;
closest->nChannels = max;
@@ -1477,8 +1477,8 @@ static HRESULT WINAPI AudioClient_GetMix
goto exit;
}
- if(max_channels > 2)
- fmt->Format.nChannels = 2;
+ if(max_channels > 6)
+ fmt->Format.nChannels = 6;
else
fmt->Format.nChannels = max_channels;
@quequotion
Copy link

I notice the second part of this patch is yet to be implemented in wine 1.7.x (comparing to git).

Does this mean wine still needs to be manually patched for surround sound?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment