Update audio chain script
Add two new sinks to be allow a sidechain compressor of the system audio controlled by discord output, which doesn't get compressed itself.
This commit is contained in:
parent
cb341b2ada
commit
f8ce7759c8
1 changed files with 25 additions and 5 deletions
|
@ -1,14 +1,34 @@
|
|||
#!/bin/bash
|
||||
|
||||
module=$(pactl load-module module-null-sink media.class=Audio/Source/Virtual sink_name=Virt_Mic channel_map=front-left,front-right)
|
||||
mic_sink=$(pactl load-module module-null-sink media.class=Audio/Source/Virtual sink_name=Virt_Mic channel_map=front-left,front-right)
|
||||
|
||||
if [ ! $? ]; then
|
||||
notify-send -a "$0" -i microphone "Failed to set-up null sink"
|
||||
exit -1
|
||||
else
|
||||
notify-send - "$0" -i microphone "Null sink set-up"
|
||||
fi
|
||||
|
||||
carla ~/Projects/Audio/Carla/Basic\ Setup.carxp
|
||||
discord_sink=$(pactl load-module module-null-sink media.class=Audio/Sink sink_name=Discord channel_map=stereo)
|
||||
|
||||
if [ ! $? ]; then
|
||||
notify-send -a "$0" -i microphone "Failed to set-up discord sink"
|
||||
pactl unload-module $mic_sink
|
||||
exit -1
|
||||
fi
|
||||
|
||||
default_sink=$(pactl load-module module-null-sink media.class=Audio/Sink sink_name=Other channel_map=stereo)
|
||||
|
||||
if [ ! $? ]; then
|
||||
notify-send -a "$0" -i microphone "Failed to set-up discord sink"
|
||||
pactl unload-module $mic_sink
|
||||
pactl unload-module $discord_sink
|
||||
exit -1
|
||||
fi
|
||||
|
||||
notify-send - "$0" -i microphone "All sinks set-up"
|
||||
|
||||
carla ~/Projects/Audio/Carla/Sidechain\ comp\ Setup.carxp
|
||||
|
||||
pactl unload-module $mic_sink
|
||||
pactl unload-module $discord_sink
|
||||
pactl unload-module $default_sink
|
||||
|
||||
pactl unload-module $module
|
||||
|
|
Loading…
Add table
Reference in a new issue