1
0
Fork 0
Scripts/Perso/auto_audio.sh
Teo-CD 853eacb2fc Auto_audio: Update project file
Since switching to a new microphone, a new project file with updated
parameters is used.
Change the name in the script to match that.
2024-03-29 12:39:32 +00:00

34 lines
979 B
Bash
Executable file

#!/bin/bash
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
fi
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 -a "$0" -i microphone "All sinks set-up"
carla "~/Projects/Audio/Carla/Sidechain comp Setup - AT2040.carxp"
pactl unload-module $mic_sink
pactl unload-module $discord_sink
pactl unload-module $default_sink