Linux之pulseaudio左右声道互换,发现方法之原帖:https://unix.stackexchange.com/questions/718668/switch-invert-left-and-right-audio-channels-on-linux-system-wide。此法需要重启系统后再运行一边CMD指令,还需慢慢琢磨出以系统设置之法,免去开机重新设置之累也。

pacmd load-module module-remap-sink master=alsa_output.usb-bestechnic_EDIFIER_N300_20160406.1-00.iec958-stereo sink_name=Inversed-PA sink_properties=device.description=Inversed-PA channels=2 channel_map=front-left,front-right master_channel_map=front-right,front-left

First, get sink (device) name:

$ pactl get-default-sink

Name: device-xxx

Reverse channels:

$ pacmd load-module module-remap-sink master=device-xxx sink_name=Inversed-PA sink_properties=device.description=Inversed-PA channels=2 channel_map=front-left,front-right master_channel_map=front-right,front-left

where

master= the device according pactl output.

sink_name= is for pulseaudio.

sink_properties=device.description= is for pavucontrol.

Last, select:

$ pactl set-default-sink Inversed-PA

CC BY-NC-SA 4.0 This work is licensed under a Creative Commons Attribution-NonCommercial-ShareAlike 4.0 International License.

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.