#! /bin/bash
# make a monitoring mix to the device
# Copyright 2001 Junichi Uekawa, see GPL version 2 or later for license.
# initial version 11 Jan 2001
# BUGS: possibly does not handle blancspace correctly.

# what follows is a command-line string
STRING=
# what follows is the name of the chain
CHANNEL=1

while test -n "$1"; do
  STRING="$STRING -a:$CHANNEL -i:$1"
  CHANNEL=$(($CHANNEL + 1))
  shift 
done

echo executing: ecasound $STRING

ecasound $STRING 

