]> git.pld-linux.org Git - packages/sox.git/blobdiff - sox-play.patch
- use new %%doc
[packages/sox.git] / sox-play.patch
index 32ad180e7ec503342371353453f311f0eac364ba..a98ca9c9d188b581932c685e026ba6adfb2331bb 100644 (file)
@@ -1,44 +1,44 @@
---- sox-12.15/play.mike        Thu Apr  1 17:37:18 1999
-+++ sox-12.15/play     Thu Apr  1 17:40:00 1999
-@@ -49,7 +49,7 @@
- fi
- while [ $# -ne 0 ] # loop over arguments
--do case $1 in
-+do case "$1" in
-    avg|band|chorus|copy|cut|echo|echos|flanger|highp|lowp|map|mask|phaser|pick|pred|rate|resample|reverb|reverse|split|stat|vibro)
-      effects="$@"
-      break
-@@ -91,32 +91,6 @@
-    shift
+--- sox-12.17.3/play.in.orig   Sat Jan 19 21:12:49 2002
++++ sox-12.17.3/play.in        Sat Jan 19 21:14:47 2002
+@@ -156,37 +156,10 @@
+     shift
  done
  
 -arch=`uname -s`
--
--if [ "$arch" = "SunOS" ]; then
--
--  case `arch -k` in
--    sun4|sun4c|sun4d)
--      # Use below for older Sun audio hardware
--      sox $volume $fopts $filename -t sunau -U -c 1 /dev/audio $effects
--      ;;
--
--    *)
--      # Use below for newer Sun audio hardware that supports stereo linear
--      sox $volume $fopts $filename -t sunau -w -s /dev/audio $effects
--      ;;
--
--  esac
--
--else
--  if [ "$arch" = "Linux" ]; then
--
--# Possible way to set volume
--#    if [ "$volume" != "" ] ; then
--#      mixer $volume
--#    fi
+-case $arch in
+-  SunOS)
+-    case `uname -r` in
+-        # Solaris software can auto-detect hardware capabilities.
+-        5.*)
+-          arch_defines="-t sunau"
+-          ;;
+-      # For SunOS default to signed words.  Some hardware can only play u-law and would need
+-      # to be changed here.
+-      *)
+-          arch_defines="-t sunau -w -s"
+-          ;;
+-    esac
+-    if [ -z "$device" ]; then
+-      device="/dev/audio"
+-    fi
+-    ;;
+-  Linux|FreeBSD)
+-    arch_defines="-t ossdsp"
+-    if [ -z "$device" ]; then
+-      device="/dev/dsp"
+-    fi
+-    ;;
+-  NetBSD)
+-    arch_defines="-t sunau"
+-    if [ -z "$device" ]; then
+-        device="/dev/audio"
+-    fi
+-    ;;
+-esac
++arch_defines="-t ossdsp"
++if [ -z "$device" ]; then
++    device="/dev/dsp"
++fi
  
-     # Best to always use highest quality output for sound.
-     sox $volume $fopts "$filename" -t ossdsp -w -s /dev/dsp $effects
--  fi
--fi
+ # If name is "rec" then record else assume user is wanting to play
+ # a sound file.
This page took 0.186599 seconds and 4 git commands to generate.