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