3 # This file is part of PulseAudio.
5 # Copyright 2006 Lennart Poettering
6 # Copyright 2006 Pierre Ossman <ossman@cendio.se> for Cendio AB
8 # PulseAudio is free software; you can redistribute it and/or modify
9 # it under the terms of the GNU Lesser General Public License as published by
10 # the Free Software Foundation; either version 2 of the License, or
11 # (at your option) any later version.
13 # PulseAudio is distributed in the hope that it will be useful, but
14 # WITHOUT ANY WARRANTY; without even the implied warranty of
15 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
16 # General Public License for more details.
18 # You should have received a copy of the GNU Lesser General Public License
19 # along with PulseAudio; if not, write to the Free Software
20 # Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307
23 while getopts 'hs:n:m:MSDd' param
; do
26 PULSE_SERVER
="$OPTARG"
30 PADSP_CLIENT_NAME
="$OPTARG"
31 export PADSP_CLIENT_NAME
34 PADSP_STREAM_NAME
="$OPTARG"
35 export PADSP_STREAM_NAME
43 export PADSP_NO_SNDSTAT
50 if [ x
"$PADSP_DEBUG" = x
]; then
53 PADSP_DEBUG
=$
(( $PADSP_DEBUG + 1 ))
58 echo "$0 - redirect OSS audio devices to PulseAudio"
60 echo "$0 [options] application [arguments]"
63 echo " -h show brief help"
64 echo " -s <host>[:<port>] contact a specific PulseAudio server"
65 echo " -n <name> client name to report to the server"
66 echo " -m <name> stream name to report to the server"
67 echo " -M disable /dev/mixer emulation"
68 echo " -S disable /dev/sndstat emulation"
69 echo " -D disable /dev/dsp emulation"
70 echo " -d enable debug output"
76 shift $
(( $OPTIND - 1 ))
78 if [ x
"$LD_PRELOAD" = x
] ; then
79 LD_PRELOAD
="libpulsedsp.so"
81 LD_PRELOAD
="$LD_PRELOAD libpulsedsp.so"