Line | |
---|
1 | unit CoolAudio;
|
---|
2 |
|
---|
3 | {$I CoolAudioConfig.inc}
|
---|
4 |
|
---|
5 | interface
|
---|
6 |
|
---|
7 | uses
|
---|
8 | Classes, SysUtils,
|
---|
9 | {$IFDEF AudioSystemWindows}AudioSystemWindows,{$ENDIF}
|
---|
10 | {$IFDEF AudioSystemMPlayer}AudioSystemMPlayer,{$ENDIF}
|
---|
11 | {$IFDEF AudioSystemFMOD}AudioSystemFMOD,{$ENDIF}
|
---|
12 | {$IFDEF AudioSystemMAD}AudioSystemMAD,{$ENDIF}
|
---|
13 | {$IFDEF AudioSystemDSP}AudioSystemDSP,{$ENDIF}
|
---|
14 | AudioSystem;
|
---|
15 |
|
---|
16 | var
|
---|
17 | AudioSystemManager: TAudioSystemManager;
|
---|
18 |
|
---|
19 | procedure Register;
|
---|
20 |
|
---|
21 |
|
---|
22 | implementation
|
---|
23 |
|
---|
24 | uses
|
---|
25 | PlayList;
|
---|
26 |
|
---|
27 | procedure Register;
|
---|
28 | begin
|
---|
29 | RegisterComponents('CoolAudio', [TMediaPlayer, TPlayList]);
|
---|
30 | end;
|
---|
31 |
|
---|
32 | initialization
|
---|
33 |
|
---|
34 | AudioSystemManager := TAudioSystemManager.Create(nil);
|
---|
35 | {$IFDEF AudioSystemWindows}AudioSystemManager.Register('Windows', TAudioSystemWindows);{$ENDIF}
|
---|
36 | {$IFDEF AudioSystemMPlayer}AudioSystemManager.Register('MPlayer', TAudioSystemMPlayer);{$ENDIF}
|
---|
37 | {$IFDEF AudioSystemFMOD}AudioSystemManager.Register('FMOD', TAudioSystemFMOD);{$ENDIF}
|
---|
38 | {$IFDEF AudioSystemMAD}AudioSystemManager.Register('MAD', TAudioSystemMAD);{$ENDIF}
|
---|
39 | {$IFDEF AudioSystemDSP}AudioSystemManager.Register('DSP', TAudioSystemDSP);{$ENDIF}
|
---|
40 |
|
---|
41 | finalization
|
---|
42 |
|
---|
43 | FreeAndNil(AudioSystemManager);
|
---|
44 |
|
---|
45 | end.
|
---|
46 |
|
---|
Note:
See
TracBrowser
for help on using the repository browser.