2023-02-26 19:06:33 +00:00
|
|
|
#!/bin/bash
|
|
|
|
|
2023-02-26 19:19:56 +00:00
|
|
|
mic_sink=$(pactl load-module module-null-sink media.class=Audio/Source/Virtual sink_name=Virt_Mic channel_map=front-left,front-right)
|
2023-02-26 19:06:33 +00:00
|
|
|
|
|
|
|
if [ ! $? ]; then
|
|
|
|
notify-send -a "$0" -i microphone "Failed to set-up null sink"
|
|
|
|
exit -1
|
|
|
|
fi
|
|
|
|
|
2023-02-26 19:19:56 +00:00
|
|
|
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
|
|
|
|
|
2024-03-29 12:38:46 +00:00
|
|
|
notify-send -a "$0" -i microphone "All sinks set-up"
|
2023-02-26 19:19:56 +00:00
|
|
|
|
|
|
|
carla ~/Projects/Audio/Carla/Sidechain\ comp\ Setup.carxp
|
|
|
|
|
|
|
|
pactl unload-module $mic_sink
|
|
|
|
pactl unload-module $discord_sink
|
|
|
|
pactl unload-module $default_sink
|
2023-02-26 19:06:33 +00:00
|
|
|
|