5 # This file is part of polypaudio.
7 # polypaudio is free software; you can redistribute it and/or modify
8 # it under the terms of the GNU Lesser General Public License as published by
9 # the Free Software Foundation; either version 2 of the License, or
10 # (at your option) any later version.
12 # polypaudio is distributed in the hope that it will be useful, but
13 # WITHOUT ANY WARRANTY; without even the implied warranty of
14 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
15 # General Public License for more details.
17 # You should have received a copy of the GNU Lesser General Public License
18 # along with polypaudio; if not, write to the Free Software
19 # Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307
22 while getopts 'hs:n:m:MSDd' param ; do
25 POLYP_SERVER="$OPTARG"
29 PADSP_CLIENT_NAME="$OPTARG"
30 export PADSP_CLIENT_NAME
33 PADSP_STREAM_NAME="$OPTARG"
34 export PADSP_STREAM_NAME
42 export PADSP_NO_SNDSTAT
49 if [ x"$PADSP_DEBUG" = x ]; then
52 PADSP_DEBUG=$(( $PADSP_DEBUG + 1 ))
57 echo "$0 - redirect OSS audio devices to Polypaudio"
59 echo "$0 [options] application [arguments]"
62 echo " -h show brief help"
63 echo " -s <host>[:<port>] contact a specific Polypaudio server"
64 echo " -n <name> client name to report to the server"
65 echo " -m <name> stream name to report to the server"
66 echo " -M disable /dev/mixer emulation"
67 echo " -S disable /dev/sndstat emulation"
68 echo " -D disable /dev/dsp emulation"
69 echo " -d enable debug output"
75 shift $(( $OPTIND - 1 ))
77 if [ x"$LD_PRELOAD" = x ] ; then
78 LD_PRELOAD="libpolypdsp.so"
80 LD_PRELOAD="$LD_PRELOAD libpolypdsp.so"