Ignore:
Timestamp:
Oct 4, 2011, 1:52:48 PM (13 years ago)
Author:
george
Message:
  • Fixed: Start/stop playback control.
  • Added: Track position and Length handling.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • CoolAudio/Systems/UAudioSystem.pas

    r276 r277  
    2929  TPlayer = class(TComponent)
    3030  private
     31    procedure SetPlaying(AValue: Boolean);
    3132  protected
    3233    FFileName: string;
     
    5152    property AudioSystem: TAudioSystem read FAudioSystem write FAudioSystem;
    5253    property FileName: string read FFileName write SetFileName;
     54    property Playing: Boolean read FPlaying write SetPlaying;
    5355    constructor Create; virtual;
    5456  end;
     
    6163
    6264{ TPlayer }
     65
     66procedure TPlayer.SetPlaying(AValue: Boolean);
     67begin
     68  if FPlaying = AValue then Exit;
     69  if AValue then Play else Stop;
     70end;
    6371
    6472procedure TPlayer.SetFileName(AValue: string);
Note: See TracChangeset for help on using the changeset viewer.