Basic script for mic chain
This new script sets up a sink for the mic chain and loads the proper configuration.
This commit is contained in:
parent
629cd1d2c0
commit
cb341b2ada
1 changed files with 14 additions and 0 deletions
14
Perso/auto_audio.sh
Executable file
14
Perso/auto_audio.sh
Executable file
|
@ -0,0 +1,14 @@
|
||||||
|
#!/bin/bash
|
||||||
|
|
||||||
|
module=$(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
|
||||||
|
|
||||||
|
pactl unload-module $module
|
Loading…
Add table
Reference in a new issue