sound - Trying to change PulseAudio application sink/source from command line - Ask Ubuntu


i have 2 applications on startup, link loopbacks , null sinks. works great, except everytime start them have open pavucontrol , manually change sink/source each application. know there command change default sink, doesn't help. want able assign sink or source each application's input , output without opening pavucontrol. there way (as pavucontrol doing behind scenes) can't find documentation or else has done before.

images demonstrate:

pulseaudio this setting want change.

other canging default sink can move sink input or source output sink or source using pactl (or pacmd).

move-sink-input id sink
move specified playback stream (identified numerical index) specified sink (identified symbolic name or numerical index).

move-source-output id source
move specified recording stream (identified numericalindex) specified source (identified symbolic name or numerical index).

to list existing streams can issue

pactl list sink-inputs pactl list source-outputs 

these can moved index location given index (or name), e.g.

pactl move-sink-input 5 1 

also see how change pulseaudio sink "pacmd set-default-sink" during playback? using pacmd.


Comments

Popular posts from this blog

download - Firefox cannot save files (most of the time), how to solve? - Super User

windows - "-2146893807 NTE_NOT_FOUND" when repair certificate store - Super User