Ignore:
Timestamp:
Oct 4, 2011, 6:55:54 PM (13 years ago)
Author:
george
Message:
  • Fixed: Do not use Windows MMSystem unit under Linux.
  • Fixed: Floating point/comma decimal separator error.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • CoolAudio/Demo/UMainForm.pas

    r278 r279  
    2222    Edit1: TEdit;
    2323    Label1: TLabel;
     24    LabelPosition: TLabel;
    2425    OpenDialog1: TOpenDialog;
    2526    TimerPlayback: TTimer;
     
    5556  AudioSystem := TAudioSystemMPlayer.Create;
    5657  TAudioSystemMPlayer(AudioSystem).Path := 'c:\Program Files\SMPlayer\mplayer\mplayer.exe';
     58  TAudioSystemMPlayer(AudioSystem).Path := TAudioSystemMPlayer(AudioSystem).FindPath;
    5759  Player := TPlayerMPlayer.Create;
    5860  Player.AudioSystem := AudioSystem;
     
    7072    TrackBar1.OnChange := nil;
    7173    TrackBar1.Position := Trunc(Player.Position / Player.Length * TrackBar1.Max);
     74    Application.ProcessMessages;
    7275    TrackBar1.OnChange := TrackBar1Change;
     76    LabelPosition.Caption := 'Position: ' + TimeToStr(Player.Position) + ' / ' + TimeToStr(Player.Length);
    7377  end;
    7478end;
Note: See TracChangeset for help on using the changeset viewer.