Skip to content

Instantly share code, notes, and snippets.

@vunb
Last active December 29, 2015 06:29
Show Gist options
  • Save vunb/7629597 to your computer and use it in GitHub Desktop.
Save vunb/7629597 to your computer and use it in GitHub Desktop.
Digital Audio Technology
#! /bin/bash
if [ $# -eq 0 ]; then
echo "You have to specify a module index"
exit 128
fi
pactl unload-module $1
#! /bin/bash
msec="${1:-1}"
mlog="Latency: $msec"
mid=`pactl load-module module-loopback latency_msec=$msec`
date=`date`
mlog="$date\nLatency: $mlog\nId: $mid"
echo -e "$mlog"
echo -e "$mlog" >> micon.mid
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment