Ask Ubuntu is a question and answer site for Ubuntu users and developers. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I have a setup where I am monitoring for silence on an incoming stream on 3 different audio cards.

When I detect silence on the master I switch to the secondary, and if I detect silence there I switch to the last card.

The way I have it set up I load/unload the loopback module for each card depending on who's the active card.

This has the inconvenience that I need a 3-to-1 minijack cable to be able to maintain the stream.

Can I load the loopback module and point the output to a single card (independently of the input card)?

How can I route the audio from any input to a single output?

share|improve this question
up vote 3 down vote accepted

From version 0.9.16 pulseaudio-module-loopback accepts parameters for source and sink respectively. This would be the command line terminology:

pactl load-module module-loopback source=<name_or_index> sink=<name_or_index>

By this the input source with a given name or index will be looped to the output sink with the given name or index.

If no paramter is given this module just guesses what to loop where (usually using our default sinks/sources).

The indices of a source or a sink will be listed on pacmd list-source resp. pacmd list-sinks.

Alternatively we may want to move a running input stream to a given sink. See this answer for details on how to do this).

share|improve this answer
I'm a little late to the party, but in case you don't know the correct names/indexes you can simply load the module, change the default input, load the module again etc. Repeat until you have all the loopbacks you need. – Sebb Mar 12 at 13:15

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.