From 36864f8ae761722e5e9d4555f49b1ca8a73e3540 Mon Sep 17 00:00:00 2001 From: "Ben \"root\" Anderson" Date: Sat, 25 Jan 2014 10:16:26 -0600 Subject: [PATCH] RageSoundDriver_JACK: Try to connect to the system playback ports if no SoundDevice was specified. --- src/arch/Sound/RageSoundDriver_JACK.cpp | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/src/arch/Sound/RageSoundDriver_JACK.cpp b/src/arch/Sound/RageSoundDriver_JACK.cpp index d4ff7dca8e..3f5da0711d 100644 --- a/src/arch/Sound/RageSoundDriver_JACK.cpp +++ b/src/arch/Sound/RageSoundDriver_JACK.cpp @@ -118,8 +118,11 @@ RString RageSoundDriver_JACK::ConnectPorts() switch (portNames.size()) { case 0: - // No ports specified - return RString(); + // No ports specified. Try the system outputs. + // XXX: If only one system playback port is available, + // only our left channel will be connected. + portNames.push_back("system:playback_1"); + portNames.push_back("system:playback_2"); case 1: // HACK: Pointing both channels at one port is probably the // wrong way to mix to mono. For now, it works.