Is there an easy way of switching audio channels in Porteus that runs pulseaudio as audio … "app"?
As in, best a CLI solution that can either be part of a script or converted into a .desktop file, e.g. "audio-normal.desktop" and "audio-reverse.desktop", just like my monitorrotate-normal.desktop and monitorrotate-left.desktop
Switching audio channels in pulseaudio via CLI?
- Rava
- Contributor
- Posts: 5424
- Joined: 11 Jan 2011, 02:46
- Distribution: XFCE 5.01 x86_64 + 4.0 i586
- Location: Forests of Germany
Switching audio channels in pulseaudio via CLI?
Cheers!
Yours Rava
Yours Rava
- ncmprhnsbl
- DEV Team
- Posts: 4253
- Joined: 20 Mar 2012, 03:42
- Distribution: v5.0-64bit
- Location: australia
- Contact:
Re: Switching audio channels in pulseaudio via CLI?
you might find a way with this:
and
https://manpage.me/?q=pactl
Code: Select all
guest@porteus:~$ pactl --help
pactl [options] stat
pactl [options] info
pactl [options] list [short] [TYPE]
pactl [options] exit
pactl [options] upload-sample FILENAME [NAME]
pactl [options] play-sample NAME [SINK]
pactl [options] remove-sample NAME
pactl [options] load-module NAME [ARGS ...]
pactl [options] unload-module NAME|#N
pactl [options] move-(sink-input|source-output) #N SINK|SOURCE
pactl [options] suspend-(sink|source) NAME|#N 1|0
pactl [options] set-card-profile CARD PROFILE
pactl [options] set-default-(sink|source) NAME
pactl [options] set-(sink|source)-port NAME|#N PORT
pactl [options] set-(sink|source)-volume NAME|#N VOLUME [VOLUME ...]
pactl [options] set-(sink-input|source-output)-volume #N VOLUME [VOLUME ...]
pactl [options] set-(sink|source)-mute NAME|#N 1|0|toggle
pactl [options] set-(sink-input|source-output)-mute #N 1|0|toggle
pactl [options] set-sink-formats #N FORMATS
pactl [options] set-port-latency-offset CARD-NAME|CARD-#N PORT OFFSET
pactl [options] subscribe
The special names @DEFAULT_SINK@, @DEFAULT_SOURCE@ and @DEFAULT_MONITOR@
can be used to specify the default sink, source and monitor.
-h, --help Show this help
--version Show version
-s, --server=SERVER The name of the server to connect to
-n, --client-name=NAME How to call this client on the server
https://manpage.me/?q=pactl
Forum Rules : https://forum.porteus.org/viewtopic.php?f=35&t=44
- Rava
- Contributor
- Posts: 5424
- Joined: 11 Jan 2011, 02:46
- Distribution: XFCE 5.01 x86_64 + 4.0 i586
- Location: Forests of Germany
Re: Switching audio channels in pulseaudio via CLI?
Thanks ncmprhnsbl,
I searched through the man page for "channel" and found only these entries mentioning channel:
Code: Select all
suspend-source SOURCE true|false
set-source-volume SOURCE VOLUME [VOLUME ...]
Unless there are undocumented parameters.

Cheers!
Yours Rava
Yours Rava
- ncmprhnsbl
- DEV Team
- Posts: 4253
- Joined: 20 Mar 2012, 03:42
- Distribution: v5.0-64bit
- Location: australia
- Contact:
Re: Switching audio channels in pulseaudio via CLI?
there might be something in this:
https://superuser.com/questions/59481/h ... ntu/821429
https://superuser.com/questions/59481/h ... ntu/821429
Forum Rules : https://forum.porteus.org/viewtopic.php?f=35&t=44