ActiveAE: open sinks with at least 2 channels
authorRainer Hochecker <fernetmenta@online.de>
Wed, 18 Sep 2013 07:22:08 +0000 (09:22 +0200)
committerRainer Hochecker <fernetmenta@online.de>
Wed, 18 Sep 2013 07:22:08 +0000 (09:22 +0200)
xbmc/cores/AudioEngine/Engines/ActiveAE/ActiveAE.cpp

index bf9c652..74f2dcb 100644 (file)
@@ -1291,6 +1291,12 @@ void CActiveAE::ApplySettingsToFormat(AEAudioFormat &format, AudioSettings &sett
     {
       format.m_channelLayout = AE_CH_LAYOUT_2_0;
     }
+
+    // sinks may not support mono
+    if (format.m_channelLayout.Count() == 1)
+    {
+      format.m_channelLayout = AE_CH_LAYOUT_2_0;
+    }
   }
 }