RageSoundDriver_JACK: Try to connect to the system playback ports if no SoundDevice was specified.
This commit is contained in:
@@ -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.
|
||||||
|
|||||||
Reference in New Issue
Block a user