source: trunk/test/installaudio.CMD@ 2

Last change on this file since 2 was 2, checked in by stevenhl, 8 years ago

Import sources from cwmm-full.zip dated 2005-03-21

File size: 2.2 KB
Line 
1/* rexx - Install the CW-Audio classes */
2
3call RxFuncAdd 'SysLoadFuncs', 'RexxUtil', 'SysLoadFuncs'
4call SysLoadFuncs
5
6curDir=DIRECTORY()
7
8
9call SysCls
10SAY ''
11SAY 'This skript will install the CWAudio classes.'
12SAY 'Do you want to continue?'
13SAY ''
14SAY 'Enter Y for yes and N for no.'
15SAY ''
16SAY '> '
17parse value SysCurPos() with aktzeile aktspalte
18newposition=SysCurPos(aktzeile-1,2)
19
20resp=LINEIN()
21IF TRANSLATE(resp)='N' THEN EXIT
22
23classDLL=DIRECTORY()||'\cwmm.dll'
24
25rc=SysRegisterObjectClass('CWAudio', classDLL)
26IF rc=0 THEN DO
27 SAY 'Error while registering the class.'
28 '@PAUSE'
29 Exit
30END
31
32SAY 'Registering MP3-Class...'
33rc=SysRegisterObjectClass('CWMP3', classDLL)
34IF rc=0 THEN DO
35 SAY 'Error while registering the class.'
36END
37
38
39SAY 'Registering Ogg-Class...'
40rc=SysRegisterObjectClass('CWOGG', classDLL)
41IF rc=0 THEN DO
42 SAY 'Error while registering the class.'
43END
44
45SAY 'Registering WAV-Class...'
46rc=SysRegisterObjectClass('CWWAV', classDLL)
47IF rc=0 THEN DO
48 SAY 'Error while registering the class.'
49END
50
51SAY 'Registering AIF-Class...'
52rc=SysRegisterObjectClass('CWAIF', classDLL)
53IF rc=0 THEN DO
54 SAY 'Error while registering the class.'
55END
56
57SAY 'Registering AU-Class...'
58rc=SysRegisterObjectClass('CWAU', classDLL)
59IF rc=0 THEN DO
60 SAY 'Error while registering the class.'
61END
62
63SAY 'Registering _AU-Class...'
64rc=SysRegisterObjectClass('CW_AU', classDLL)
65IF rc=0 THEN DO
66 SAY 'Error while registering the class.'
67END
68
69SAY 'Registering IFF-Class...'
70rc=SysRegisterObjectClass('CWIFF', classDLL)
71IF rc=0 THEN DO
72 SAY 'Error while registering the class.'
73END
74
75SAY 'Registering SNDF-Class...'
76rc=SysRegisterObjectClass('CWSNDF', classDLL)
77IF rc=0 THEN DO
78 SAY 'Error while registering the class.'
79END
80
81SAY 'Registering VOC-Class...'
82rc=SysRegisterObjectClass('CWVOC', classDLL)
83IF rc=0 THEN DO
84 SAY 'Error while registering the class.'
85END
86
87SAY 'Registering CDTrack-Class...'
88rc=SysRegisterObjectClass('CWCDTrack', classDLL)
89IF rc=0 THEN DO
90 SAY 'Error while registering the class.'
91END
92
93SAY 'Registering MIDI-Class...'
94rc=SysRegisterObjectClass('CWMIDI', classDLL)
95IF rc=0 THEN DO
96 SAY 'Error while registering the class.'
97END
98
99'@PAUSE'
100EXIT
101
Note: See TracBrowser for help on using the repository browser.