]> git.pld-linux.org Git - packages/sox.git/blob - sox-play.patch
almost raw
[packages/sox.git] / sox-play.patch
1 --- sox-12.15/play.mike Thu Apr  1 17:37:18 1999
2 +++ sox-12.15/play      Thu Apr  1 17:40:00 1999
3 @@ -49,7 +49,7 @@
4  fi
5  
6  while [ $# -ne 0 ] # loop over arguments
7 -do case $1 in
8 +do case "$1" in
9     avg|band|chorus|copy|cut|echo|echos|flanger|highp|lowp|map|mask|phaser|pick|pred|rate|resample|reverb|reverse|split|stat|vibro)
10       effects="$@"
11       break
12 @@ -91,32 +91,6 @@
13     shift
14  done
15  
16 -arch=`uname -s`
17 -
18 -if [ "$arch" = "SunOS" ]; then
19 -
20 -  case `arch -k` in
21 -    sun4|sun4c|sun4d)
22 -      # Use below for older Sun audio hardware
23 -      sox $volume $fopts $filename -t sunau -U -c 1 /dev/audio $effects
24 -      ;;
25 -
26 -    *)
27 -      # Use below for newer Sun audio hardware that supports stereo linear
28 -      sox $volume $fopts $filename -t sunau -w -s /dev/audio $effects
29 -      ;;
30 -
31 -  esac
32 -
33 -else
34 -  if [ "$arch" = "Linux" ]; then
35 -
36 -# Possible way to set volume
37 -#    if [ "$volume" != "" ] ; then
38 -#      mixer $volume
39 -#    fi
40  
41      # Best to always use highest quality output for sound.
42      sox $volume $fopts "$filename" -t ossdsp -w -s /dev/dsp $effects
43 -  fi
44 -fi
This page took 0.175908 seconds and 3 git commands to generate.