Changeset 277 for CoolAudio/Systems/UAudioSystem.pas
- Timestamp:
- Oct 4, 2011, 1:52:48 PM (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
CoolAudio/Systems/UAudioSystem.pas
r276 r277 29 29 TPlayer = class(TComponent) 30 30 private 31 procedure SetPlaying(AValue: Boolean); 31 32 protected 32 33 FFileName: string; … … 51 52 property AudioSystem: TAudioSystem read FAudioSystem write FAudioSystem; 52 53 property FileName: string read FFileName write SetFileName; 54 property Playing: Boolean read FPlaying write SetPlaying; 53 55 constructor Create; virtual; 54 56 end; … … 61 63 62 64 { TPlayer } 65 66 procedure TPlayer.SetPlaying(AValue: Boolean); 67 begin 68 if FPlaying = AValue then Exit; 69 if AValue then Play else Stop; 70 end; 63 71 64 72 procedure TPlayer.SetFileName(AValue: string);
Note:
See TracChangeset
for help on using the changeset viewer.