Changeset 279 for CoolAudio/Demo/UMainForm.pas
- Timestamp:
- Oct 4, 2011, 6:55:54 PM (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
CoolAudio/Demo/UMainForm.pas
r278 r279 22 22 Edit1: TEdit; 23 23 Label1: TLabel; 24 LabelPosition: TLabel; 24 25 OpenDialog1: TOpenDialog; 25 26 TimerPlayback: TTimer; … … 55 56 AudioSystem := TAudioSystemMPlayer.Create; 56 57 TAudioSystemMPlayer(AudioSystem).Path := 'c:\Program Files\SMPlayer\mplayer\mplayer.exe'; 58 TAudioSystemMPlayer(AudioSystem).Path := TAudioSystemMPlayer(AudioSystem).FindPath; 57 59 Player := TPlayerMPlayer.Create; 58 60 Player.AudioSystem := AudioSystem; … … 70 72 TrackBar1.OnChange := nil; 71 73 TrackBar1.Position := Trunc(Player.Position / Player.Length * TrackBar1.Max); 74 Application.ProcessMessages; 72 75 TrackBar1.OnChange := TrackBar1Change; 76 LabelPosition.Caption := 'Position: ' + TimeToStr(Player.Position) + ' / ' + TimeToStr(Player.Length); 73 77 end; 74 78 end;
Note:
See TracChangeset
for help on using the changeset viewer.