Line | |
---|
1 | unit AudioSystemMAD;
|
---|
2 |
|
---|
3 | {$I CoolAudioConfig.inc}
|
---|
4 |
|
---|
5 | interface
|
---|
6 |
|
---|
7 | {$IFDEF AudioSystemMAD}
|
---|
8 | uses
|
---|
9 | Classes, SysUtils, mad, AudioSystem;
|
---|
10 |
|
---|
11 | type
|
---|
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 |
|
---|
29 | implementation
|
---|
30 |
|
---|
31 | {$IFDEF AudioSystemMAD}
|
---|
32 |
|
---|
33 | { TAudioSystemMAD }
|
---|
34 |
|
---|
35 | function TAudioSystemMAD.GetMediaPlayerDriverClass: TMediaPlayerDriverClass;
|
---|
36 | begin
|
---|
37 | Result := TPlayerMAD;
|
---|
38 | end;
|
---|
39 |
|
---|
40 | { TPlayerMAD }
|
---|
41 |
|
---|
42 | procedure TPlayerMAD.Play;
|
---|
43 | begin
|
---|
44 | inherited Play;
|
---|
45 |
|
---|
46 | end;
|
---|
47 |
|
---|
48 | procedure TPlayerMAD.Pause;
|
---|
49 | begin
|
---|
50 | inherited Pause;
|
---|
51 | end;
|
---|
52 |
|
---|
53 | procedure TPlayerMAD.Stop;
|
---|
54 | begin
|
---|
55 | inherited Stop;
|
---|
56 | end;
|
---|
57 |
|
---|
58 | {$ENDIF}
|
---|
59 |
|
---|
60 | end.
|
---|
61 |
|
---|
Note:
See
TracBrowser
for help on using the repository browser.