Build tables with new versions of sox that do not provide -b/-w data size flags.

git-svn-id: http://voip.null.ro/svn/yate@2387 acf43c95-373e-0410-b603-e72c3f656dc1
This commit is contained in:
paulc 2008-12-02 22:23:46 +00:00
parent 6fff0b3ece
commit 8af484b642
1 changed files with 12 additions and 6 deletions

View File

@ -2,14 +2,20 @@
awk -f "$1/gen.awk"
sc="sox -r 8000 -c 1 -t raw"
$sc -w -s 16b.raw -b -U -t raw s2u
$sc -w -s 16b.raw -b -A -t raw s2a
b=-1
w=-2
# for very old versions of sox you may need to uncomment the following 2 lines:
# b=-b
# w=-w
$sc -b -U 08b.raw -w -s -t raw u2s
$sc -b -A 08b.raw -w -s -t raw a2s
$sc $w -s 16b.raw $b -U -t raw s2u
$sc $w -s 16b.raw $b -A -t raw s2a
$sc -b -U 08b.raw -b -A -t raw u2a
$sc -b -A 08b.raw -b -U -t raw a2u
$sc $b -U 08b.raw $w -s -t raw u2s
$sc $b -A 08b.raw $w -s -t raw a2s
$sc $b -U 08b.raw $b -A -t raw u2a
$sc $b -A 08b.raw $b -U -t raw a2u
gcc -o gen "$1/gen.c"