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
53 echo "$0 - redirect OSS audio devices to Polypaudio"
55 echo "$0 [options] application [arguments]"
58 echo " -h show brief help"
59 echo " -s <host>[:<port>] contact a specific Polypaudio server"
60 echo " -n <name> client name to report to the server"
61 echo " -m <name> stream name to report to the server"
62 echo " -M disable /dev/mixer emulation"
63 echo " -S disable /dev/sndstat emulation"
64 echo " -D disable /dev/dsp emulation"
65 echo " -d enable debug output"
71 shift $(( $OPTIND - 1 ))
73 if [ x"$LD_PRELOAD" = x ] ; then
74 LD_PRELOAD="libpolypdsp.so"
76 LD_PRELOAD="$LD_PRELOAD libpolypdsp.so"