Category : C Source Code
Archive   : SOX.ZIP
Filename : TESTS.SH

 
Output of file : TESTS.SH contained in archive : SOX.ZIP
#!/bin/sh
# test files
# SOX Test script. This should run without core-dumping or printing any
# messages.
file=monkey

# verbose options
# noise=-V

rm -f out.raw out2.raw in.raw
sox $noise $file.voc ub.raw
sox $noise -t raw -r 8196 -u -b -c 1 ub.raw -r 8196 -s -b sb.raw
sox $noise -t raw -r 8196 -s -b -c 1 sb.raw -r 8196 -u -b ub2.raw
sox $noise -r 8196 -u -b -c 1 ub2.raw -r 8196 ub2.voc
cmp -l ub.raw ub2.raw
# skip checksum and rate byte
cmp -l $file.voc ub2.voc | grep -v '^ 2[3456]' | grep -v '^ 31'
rm -f ub.raw sb.raw ub2.raw ub2.voc
sox $noise $file.au -u -r 8192 -u -b ub.raw
sox $noise -r 8192 -u -b ub.raw -U -b ub.au
sox $noise ub.au -u ub2.raw
sox $noise ub.au -w ub2.sf
rm -f ub.raw ub.au ub2.raw ub.sf
#
# Cmp -l of stop.raw and stop2.raw will show that most of the
# bytes are 1 apart. This is quantization error.
#
# rm -f stop.raw stop2.raw stop2.au
# Bytes 23 - 26 are the revision level of VOC file utilities and checksum.
# We may use different ones than Sound Blaster utilities do.
# We use 0/1 for the major/minor, SB uses that on the 1.15 utility disk.


  3 Responses to “Category : C Source Code
Archive   : SOX.ZIP
Filename : TESTS.SH

  1. Very nice! Thank you for this wonderful archive. I wonder why I found it only now. Long live the BBS file archives!

  2. This is so awesome! 😀 I’d be cool if you could download an entire archive of this at once, though.

  3. But one thing that puzzles me is the “mtswslnkmcjklsdlsbdmMICROSOFT” string. There is an article about it here. It is definitely worth a read: http://www.os2museum.com/wp/mtswslnk/