Created
January 20, 2016 16:29
-
-
Save riccardobl/2c86c84d4c84a28abc6d to your computer and use it in GitHub Desktop.
Enable/Disable mic looback with pulseaudio
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function enable { | |
pactl load-module module-loopback latency_msec=1 > ~/.micloopback.id | |
} | |
function disable { | |
pactl unload-module `cat ~/.micloopback.id` | |
} | |
if [ -f ~/.micloopback.id ]; then | |
disable | |
rm ~/.micloopback.id | |
fi | |
if [ "$1" = "on" ]; then | |
enable | |
fi | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment