#include <time.h>
#include <alsa/asoundlib.h>
+#include <alsa/mixer_old.h>
#include "aconfig.h"
/* example compilation commandline:
#!/bin/bash
-#GDB="gdb --args"
-GDB=""
-
-ALSA_MIXER_SIMPLE_MODULES="$HOME/hg/alsa-lib/modules/mixer/simple/.libs" \
-ALSA_MIXER_SIMPLE="$HOME/hg/alsa-lib/src/conf/smixer.conf" \
-ALSA_MIXER_SIMPLE_MPYTHON="$HOME/hg/alsa-lib/modules/mixer/simple/python/main.py" \
-LD_PRELOAD="$HOME/hg/alsa-lib/src/.libs/libasound.so" \
-$GDB ./alsamixer "$@"
+../go run ./alsamixer "$@"
#include <errno.h>
#include <assert.h>
#include <alsa/asoundlib.h>
+#include <alsa/mixer_old.h>
#include <sys/poll.h>
#include "amixer.h"
#!/bin/bash
-#GDB="gdb --args"
-GDB=""
-
-ALSA_MIXER_SIMPLE_MODULES="$HOME/hg/alsa-lib/modules/mixer/simple/.libs" \
-ALSA_MIXER_SIMPLE="$HOME/hg/alsa-lib/src/conf/smixer.conf" \
-ALSA_MIXER_SIMPLE_MPYTHON="$HOME/hg/alsa-lib/modules/mixer/simple/python/main.py" \
-LD_PRELOAD="$HOME/hg/alsa-lib/src/.libs/libasound.so" \
-$GDB ./amixer "$@"
+../go run ./amixer "$@"
--- /dev/null
+#!/bin/bash
+
+GDB=""
+#GDB="gdb --args"
+BASEDIR=`pwd`/..
+[ ! -d $BASEDIR/alsa-lib ] && BASEDIR="$BASEDIR/.."
+CMD="$1"
+shift
+ALSALIB_CONF=$BASEDIR/alsa-lib/src/conf/alsa.conf
+
+case $CMD in
+run)
+ PROG="$1"
+ shift
+ ALSA_CONFIG_PATH="$ALSALIB_CONF" \
+ LD_PRELOAD=$BASEDIR/alsa-lib/src/.libs/libasound.so $GDB $PROG "$@"
+ ;;
+*)
+ echo "This is test build using alsa-lib in: $BASEDIR"
+ ./gitcompile --with-alsa-inc-prefix=$BASEDIR/alsa-lib/include \
+ --with-alsa-prefix=$BASEDIR/alsa-lib/src/.libs
+ ;;
+esac