Changeset 569 for CoolAudio/Playlist.pas


Ignore:
Timestamp:
Mar 26, 2024, 11:37:40 PM (7 months ago)
Author:
chronos
Message:
  • Modified: Removed U prefix from CoolAudio unit names.
File:
1 moved

Legend:

Unmodified
Added
Removed
  • CoolAudio/Playlist.pas

    r568 r569  
    1 unit UPlaylist;
    2 
    3 {$mode delphi}{$H+}
     1unit Playlist;
    42
    53interface
    64
    75uses
    8   Classes, SysUtils, Contnrs, UAudioSystem;
     6  Classes, SysUtils, Generics.Collections, AudioSystem;
    97
    108type
     
    3028  published
    3129    Player: TMediaPlayer;
    32     Items: TObjectList; // TObjectList<TPlaylistItem>
     30    Items: TObjectList<TPlaylistItem>;
    3331    property RandomOrder: Boolean read FRandomOrder write FRandomOrder;
    3432    property RepeatInfinitely: Boolean read FRepeatInfinitely
     
    5250procedure TPlayList.Shuffle;
    5351begin
    54 
    5552end;
    5653
     
    8481begin
    8582  inherited;
    86   Items := TObjectList.Create;
     83  Items := TObjectList<TPlaylistItem>.Create;
    8784end;
    8885
    8986destructor TPlayList.Destroy;
    9087begin
    91   Items.Free;
    92   inherited Destroy;
     88  FreeAndNil(Items);
     89  inherited;
    9390end;
    9491
Note: See TracChangeset for help on using the changeset viewer.