#!/bin/sh

if (which padsp >/dev/null 2>&1); then
  exec padsp sbagen-bin "$@"
elif (which aoss >/dev/null 2>&1); then
  exec aoss sbagen-bin "$@"
else
  echo "padsp and aoss not found in \$PATH" >&2
  exit 1
fi
