source: trunk/Packages/CoolAudio/Systems/MAD/AudioSystemMAD.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: 885 bytes
Line 
1unit AudioSystemMAD;
2
3{$I CoolAudioConfig.inc}
4
5interface
6
7{$IFDEF AudioSystemMAD}
8uses
9 Classes, SysUtils, mad, AudioSystem;
10
11type
12 TAudioSystemMAD = class(TAudioSystem)
13 public
14 function GetMediaPlayerDriverClass: TMediaPlayerDriverClass; override;
15 end;
16
17 { TPlayerMAD }
18
19 TPlayerMAD = class(TMediaPlayerDriver)
20 public
21 procedure Play; override;
22 procedure Pause; override;
23 procedure Stop; override;
24 end;
25
26{$ENDIF}
27
28
29implementation
30
31{$IFDEF AudioSystemMAD}
32
33{ TAudioSystemMAD }
34
35function TAudioSystemMAD.GetMediaPlayerDriverClass: TMediaPlayerDriverClass;
36begin
37 Result := TPlayerMAD;
38end;
39
40{ TPlayerMAD }
41
42procedure TPlayerMAD.Play;
43begin
44 inherited Play;
45
46end;
47
48procedure TPlayerMAD.Pause;
49begin
50 inherited Pause;
51end;
52
53procedure TPlayerMAD.Stop;
54begin
55 inherited Stop;
56end;
57
58{$ENDIF}
59
60end.
61
Note: See TracBrowser for help on using the repository browser.