Changeset 569 for CoolAudio/Playlist.pas
- Timestamp:
- Mar 26, 2024, 11:37:40 PM (7 months ago)
- File:
-
- 1 moved
Legend:
- Unmodified
- Added
- Removed
-
CoolAudio/Playlist.pas
r568 r569 1 unit UPlaylist; 2 3 {$mode delphi}{$H+} 1 unit Playlist; 4 2 5 3 interface 6 4 7 5 uses 8 Classes, SysUtils, Contnrs, UAudioSystem;6 Classes, SysUtils, Generics.Collections, AudioSystem; 9 7 10 8 type … … 30 28 published 31 29 Player: TMediaPlayer; 32 Items: TObjectList ; // TObjectList<TPlaylistItem>30 Items: TObjectList<TPlaylistItem>; 33 31 property RandomOrder: Boolean read FRandomOrder write FRandomOrder; 34 32 property RepeatInfinitely: Boolean read FRepeatInfinitely … … 52 50 procedure TPlayList.Shuffle; 53 51 begin 54 55 52 end; 56 53 … … 84 81 begin 85 82 inherited; 86 Items := TObjectList .Create;83 Items := TObjectList<TPlaylistItem>.Create; 87 84 end; 88 85 89 86 destructor TPlayList.Destroy; 90 87 begin 91 Items.Free;92 inherited Destroy;88 FreeAndNil(Items); 89 inherited; 93 90 end; 94 91
Note:
See TracChangeset
for help on using the changeset viewer.