mirror of
				https://gitlab.freedesktop.org/pulseaudio/pulseaudio.git
				synced 2025-11-03 09:01:50 -05:00 
			
		
		
		
	Fix padsp script so that it accepts parameters, setting relevant environment
variables as needed. git-svn-id: file:///home/lennart/svn/public/pulseaudio/trunk@970 fefdeb5f-60dc-0310-8127-8f9354f1896f
This commit is contained in:
		
							parent
							
								
									0387b30994
								
							
						
					
					
						commit
						ea7995b764
					
				
					 1 changed files with 51 additions and 0 deletions
				
			
		| 
						 | 
					@ -19,6 +19,57 @@
 | 
				
			||||||
# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307
 | 
					# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307
 | 
				
			||||||
# USA.
 | 
					# USA.
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					while getopts 'hs:n:m:MSDd' param ; do
 | 
				
			||||||
 | 
						case $param in
 | 
				
			||||||
 | 
							s)
 | 
				
			||||||
 | 
								POLYP_SERVER="$OPTARG"
 | 
				
			||||||
 | 
								export POLYP_SERVER
 | 
				
			||||||
 | 
								;;
 | 
				
			||||||
 | 
							n)
 | 
				
			||||||
 | 
								PA_CLIENT_NAME="$OPTARG"
 | 
				
			||||||
 | 
								export PA_CLIENT_NAME
 | 
				
			||||||
 | 
								;;
 | 
				
			||||||
 | 
							m)
 | 
				
			||||||
 | 
								PA_STREAM_NAME="$OPTARG"
 | 
				
			||||||
 | 
								export PA_STREAM_NAME
 | 
				
			||||||
 | 
								;;
 | 
				
			||||||
 | 
							M)
 | 
				
			||||||
 | 
								PA_NO_MIXER=1
 | 
				
			||||||
 | 
								export PA_NO_MIXER
 | 
				
			||||||
 | 
								;;
 | 
				
			||||||
 | 
							S)
 | 
				
			||||||
 | 
								PA_NO_SNDSTAT=1
 | 
				
			||||||
 | 
								export PA_NO_SNDSTAT
 | 
				
			||||||
 | 
								;;
 | 
				
			||||||
 | 
							D)
 | 
				
			||||||
 | 
								PA_NO_DSP=1
 | 
				
			||||||
 | 
								export PA_NO_DSP
 | 
				
			||||||
 | 
								;;
 | 
				
			||||||
 | 
							d)
 | 
				
			||||||
 | 
								PADSP_DEBUG=1
 | 
				
			||||||
 | 
								export PADSP_DEBUG
 | 
				
			||||||
 | 
								;;
 | 
				
			||||||
 | 
							*)
 | 
				
			||||||
 | 
								echo "$0 - redirect OSS audio devices to Polypaudio"
 | 
				
			||||||
 | 
								echo " "
 | 
				
			||||||
 | 
								echo "$0 [options] application [arguments]"
 | 
				
			||||||
 | 
								echo " "
 | 
				
			||||||
 | 
								echo "options:"
 | 
				
			||||||
 | 
								echo "	-h                  show brief help"
 | 
				
			||||||
 | 
								echo "	-s <host>[:<port>]  contact a specific Polypaudio server"
 | 
				
			||||||
 | 
								echo "	-n <name>           client name to report to the server"
 | 
				
			||||||
 | 
								echo "	-m <name>           stream name to report to the server"
 | 
				
			||||||
 | 
								echo "	-M                  disable /dev/mixer emulation"
 | 
				
			||||||
 | 
								echo "	-S                  disable /dev/sndstat emulation"
 | 
				
			||||||
 | 
								echo "	-D                  disable /dev/dsp emulation"
 | 
				
			||||||
 | 
								echo "	-d                  enable debug output"
 | 
				
			||||||
 | 
								exit 0
 | 
				
			||||||
 | 
								;;
 | 
				
			||||||
 | 
						esac
 | 
				
			||||||
 | 
					done
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					shift $(( $OPTIND - 1 ))
 | 
				
			||||||
 | 
					
 | 
				
			||||||
if [ x"$LD_PRELOAD" = x ] ; then
 | 
					if [ x"$LD_PRELOAD" = x ] ; then
 | 
				
			||||||
   LD_PRELOAD="libpolypdsp.so"
 | 
					   LD_PRELOAD="libpolypdsp.so"
 | 
				
			||||||
else
 | 
					else
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue