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

Legend:

Unmodified
Added
Removed
  • trunk/Packages/CoolAudio/Playlist.pas

    r74 r75  
    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.