File: tests.bat

package info (click to toggle)
sox 12.16-6
  • links: PTS
  • area: main
  • in suites: potato
  • size: 1,180 kB
  • ctags: 1,466
  • sloc: ansic: 16,658; sh: 2,071; makefile: 126
file content (81 lines) | stat: -rw-r--r-- 1,356 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
@echo off

rem     Test script for sox under DOS derived from tests.sh. This should
rem     run without core-dumping or printing any error messages.

set file=monkey

rem verbose options

rem set noise=-V

del out.raw
del out2.raw
del in.raw
cls

echo on
.\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
@echo off

echo.
dir ub.raw
dir ub2.raw
echo.
echo The two filesizes above should be the same.
pause
echo.
echo.

echo Skip checksum and rate byte. DOS isn't good at this, so just use a
echo rough test.

echo.
dir %file%.voc
dir ub2.voc
echo.
echo The two filesizes above should be the same.
pause
cls

del ub.raw
del sb.raw
del ub2.raw
del ub2.voc

echo on
.\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
@echo off

del ub.raw
del ub.au
del ub2.raw
rem del ub.sf

echo on
.\sox %noise% ub2.sf ub2.aif
.\sox %noise% ub2.aif ub3.sf
@echo off

echo Skip comment field containing different filenames. Again, DOS sucks.

echo.
dir ub2.sf
dir ub3.sf
echo.
echo The two filesizes above should be the same.
pause
cls

del ub2.sf
del ub2.aif
del ub3.sf

set file=
set noise=