source: trunk/Packages/CoolAudio/CoolAudio.pas

Last change on this file was 75, checked in by chronos, 8 months ago
  • Modified: Removed U prefix from CoolAudio package unit names.
File size: 1.1 KB
Line 
1unit CoolAudio;
2
3{$I CoolAudioConfig.inc}
4
5interface
6
7uses
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
16var
17 AudioSystemManager: TAudioSystemManager;
18
19procedure Register;
20
21
22implementation
23
24uses
25 PlayList;
26
27procedure Register;
28begin
29 RegisterComponents('CoolAudio', [TMediaPlayer, TPlayList]);
30end;
31
32initialization
33
34AudioSystemManager := 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
41finalization
42
43FreeAndNil(AudioSystemManager);
44
45end.
46
Note: See TracBrowser for help on using the repository browser.