[Jackaudio] Querying input ports for 1 input channel card fails (ALSA/USB)

Kjetil Matheussen k.s.matheussen at gmail.com
Thu May 7 10:06:56 CEST 2020


Hi,

A user reports that Radium prints an error when it tries to connect
input ports. The user has a USB soundcard with just one input channel.

Here's the code:
https://github.com/kmatheussen/radium/blob/master/audio/KillJackd.cpp#L128
(If code has changed, search for "// Connect input ports")

When running the program, the user gets this error message:

    "KillJackd.cpp: Could not connect input port 2"

If there is only one input port, this message should not be printed,
because portname for port 2 should be NULL. I don't see anything wrong
with the code... Could it be a bug in Jack?

Full discussion:
https://users.notam02.no/~kjetism/radium/forum/viewtopic.php?f=7&t=265


More information about the JackAudio mailing list