RageSoundDriver_JACK: Try to connect to the system playback ports if no SoundDevice was specified.

This commit is contained in:
Ben "root" Anderson
2014-01-25 10:16:26 -06:00
parent 5a78561806
commit 36864f8ae7
+5 -2
View File
@@ -118,8 +118,11 @@ RString RageSoundDriver_JACK::ConnectPorts()
switch (portNames.size()) switch (portNames.size())
{ {
case 0: case 0:
// No ports specified // No ports specified. Try the system outputs.
return RString(); // 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: case 1:
// HACK: Pointing both channels at one port is probably the // HACK: Pointing both channels at one port is probably the
// wrong way to mix to mono. For now, it works. // wrong way to mix to mono. For now, it works.