#!/bin/bash #DBG="gdb --args " #DBG="strace" #DBG="valgrind --leak-check=full" CFGFILE="/tmp/alsaloop.test.cfg" test1() { echo "TEST1" $DBG ./alsaloop -C hw:1,0 -P plughw:0,0 \ --tlatency 50000 \ --mixer "name='Master Playback Volume'@name='Master Playback Volume'" \ --mixer "name='Master Playback Switch'@name='Master Playback Switch'" \ --mixer "name='PCM Playback Volume'" \ --ossmixer "Master@VOLUME" \ --ossmixer "PCM@PCM" } test2() { echo "TEST2" cat > $CFGFILE < $CFGFILE < $CFGFILE <