I have USB speakers connected to my Ubuntu desktop. Because of the way the cables are attached & my floor layout, I would like to reverse the left and right speaker output. Is there a way to do this?
/etc/pulse/default.pa and the following lines ...
load-module module-remap-sink sink_name=reverse-stereo master=0 channels=2 master_channel_map=front-right,front-left channel_map=front-left,front-right set-default-sink reverse-stereo
... Then restart the pulseaudio daemon with:
$ pulseaudio -k $ pulseaudio --start
You can also omit "set-default-sink" line above and select the reversed output in the sound settings dialog when you need it.