shithub: sox

Download patch

ref: 205443a1cccac1dcd3e9648ef53b7b7eba4e1fb8
parent: 24105030271f212b529e0c611606eae06e10eb40
author: rrt <rrt>
date: Sat Apr 7 19:32:42 EDT 2007

Add nibble and bit swaps to formatText

--- a/src/tests.sh
+++ b/src/tests.sh
@@ -22,9 +22,9 @@
     Raw) formatText="double"; formatFlags="-f -8" ;;
     au ) formatFlags="-s" ;;
     Wav) formatFlags="-u -b" ;;
-    sbX ) formatText="signed byte"; formatExt="sb"; formatFlags="-X" ;;
-    sbN ) formatText="signed byte"; formatExt="sb"; formatFlags="-N" ;;
-    sbXN ) formatText="signed byte"; formatExt="sb"; formatFlags="-X -N" ;;
+    sbX ) formatText="signed byte (swap bits)"; formatExt="sb"; formatFlags="-X" ;;
+    sbN ) formatText="signed byte (swap nibbles)"; formatExt="sb"; formatFlags="-N" ;;
+    sbXN ) formatText="signed byte (swap nibbles and bits)"; formatExt="sb"; formatFlags="-X -N" ;;
   esac
 }