@@ -14,7 +14,7 @@ idfile=$tmppath/sinkid.tmp
1414if [ -f $idfile ]; then oldid=$( < $idfile ) ; fi
1515pidfile=$tmppath /pid.tmp
1616if [ -f $pidfile ]; then pid=$( < $pidfile ) ; fi
17- logfile=$tmppath /viper .log
17+ logfile=$tmppath /jdsp .log
1818vipersink=jdsp
1919mkdir -p $configpath
2020mkdir -p $tmppath
@@ -28,13 +28,13 @@ start () {
2828 declare $( head -n1 $devicefile ) # get location and desc from file else
2929 # Do our best.
3030 location=$( pactl info | grep " Default Sink" | awk -F " : " ' {print $2}' )
31- if [ " $location " == " $vipersink " ]; then echo " Something is very wrong (Target is same as our vipersink name)." ; return ; fi
31+ if [ " $location " == " $vipersink " ]; then echo " Something is very wrong (Target is same as our jdspsink name)." ; return ; fi
3232 fi
3333 idnum=$( pactl load-module module-null-sink sink_name=$vipersink sink_properties=device.description=" JDSP4Linux" )
3434 echo $idnum > $idfile
3535 echo " Setting original sink to full volume..."
3636 pactl set-sink-volume $location 1.0
37- echo " Changing primary sink to Viper ..."
37+ echo " Changing primary sink to JDSP ..."
3838 pactl set-default-sink $vipersink
3939 source $audiofile
4040 gst-launch-1.0 -v pulsesrc device=$vipersink .monitor volume=1.0 \
@@ -57,7 +57,7 @@ stop () {
5757 if [ -f $idfile ]; then
5858 pactl unload-module $oldid
5959 rm $idfile
60- echo " Unloaded Viper sink."
60+ echo " Unloaded JDSP sink."
6161 fi
6262}
6363
@@ -77,7 +77,7 @@ status () {
7777 running=" [STOPPED]"
7878 fi
7979 if [ -f $idfile ]; then
80- idfilestatus=" There is an idfile. The viper sink seems to be loaded at id: $oldid ." ; else
80+ idfilestatus=" There is an idfile. The JDSPP sink seems to be loaded at id: $oldid ." ; else
8181 idfilestatus=" No idfile found."
8282 fi
8383 echo " $running "
0 commit comments