Mark Harmstone : winecfg: Fix bug causing 5.1 speakers to appear as stereo.

Alexandre Julliard julliard at wine.codeweavers.com
Wed Feb 4 10:51:16 CST 2015


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

Author: Mark Harmstone <hellas at burntcomma.com>
Date:   Tue Feb  3 18:40:02 2015 +0000

winecfg: Fix bug causing 5.1 speakers to appear as stereo.

---

 programs/winecfg/audio.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/programs/winecfg/audio.c b/programs/winecfg/audio.c
index ca674f4..6446a67 100644
--- a/programs/winecfg/audio.c
+++ b/programs/winecfg/audio.c
@@ -122,7 +122,7 @@ static BOOL load_device(IMMDevice *dev, struct DeviceInfo *info)
     hr = IPropertyStore_GetValue(ps,
             &PKEY_AudioEndpoint_PhysicalSpeakers, &pv);
 
-    info->speaker_config = 0;
+    info->speaker_config = -1;
     if(SUCCEEDED(hr) && pv.vt == VT_UI4){
         i = 0;
         while (speaker_configs[i].text_id != 0) {
@@ -135,7 +135,7 @@ static BOOL load_device(IMMDevice *dev, struct DeviceInfo *info)
     }
 
     /* fallback to stereo */
-    if(info->speaker_config == 0)
+    if(info->speaker_config == -1)
         info->speaker_config = 2;
 
     IPropertyStore_Release(ps);




More information about the wine-cvs mailing list