1@echo off 2 3rem Test script for sox under DOS derived from tests.sh. This should 4rem run without core-dumping or printing any error messages. 5 6set file=monkey 7 8rem verbose options 9 10rem set noise=-V 11 12del out.raw 13del out2.raw 14del in.raw 15cls 16 17echo on 18.\sox %noise% %file%.wav ub.raw 19.\sox %noise% -t raw -r 8196 -u -1 -c 1 ub.raw -r 8196 -s -1 sb.raw 20.\sox %noise% -t raw -r 8196 -s -1 -c 1 sb.raw -r 8196 -u -1 ub2.raw 21.\sox %noise% -r 8196 -u -1 -c 1 ub2.raw -r 8196 ub2.wav 22@echo off 23 24echo. 25dir ub.raw 26dir ub2.raw 27echo. 28echo The two filesizes above should be the same. 29pause 30echo. 31echo. 32 33echo Skip checksum and rate byte. DOS isn't good at this, so just use a 34echo rough test. 35 36echo. 37dir %file%.wav 38dir ub2.wav 39echo. 40echo The two filesizes above should be the same. 41pause 42cls 43 44del ub.raw 45del sb.raw 46del ub2.raw 47del ub2.wav 48 49echo on 50.\sox %noise% %file%.au -u -r 8192 -u -1 ub.raw 51.\sox %noise% -r 8192 -u -1 ub.raw -U -1 ub.au 52.\sox %noise% ub.au -u ub2.raw 53.\sox %noise% ub.au -2 ub2.sf 54@echo off 55 56del ub.raw 57del ub.au 58del ub2.raw 59rem del ub.sf 60 61echo on 62.\sox %noise% ub2.sf ub2.aif 63.\sox %noise% ub2.aif ub3.sf 64@echo off 65 66echo Skip comment field containing different filenames. Again, DOS sucks. 67 68echo. 69dir ub2.sf 70dir ub3.sf 71echo. 72echo The two filesizes above should be the same. 73pause 74cls 75 76del ub2.sf 77del ub2.aif 78del ub3.sf 79 80set file= 81set noise= 82