Вниз
Скачать: CL | DM;

Как узнать длинну трека или клипа проигрываемого в TMediaPlaer ?   Найти похожие ветки 

← →
DeMoN-777 ©   (2002-09-02 17:56) [0]

Делаю так


procedure TForm1.Button1Click(Sender: TObject);
type HMSRec = record
Hours: byte;
Minutes: byte;
Seconds: byte;
NotUsed: byte;
end;
var TheLength: LongInt;
begin
MediaPlayer1.TimeFormat := tfHMS;
TheLength := MediaPlayer1.Length;
with HMSRec(TheLength) do
begin
Label1.Caption := IntToStr(Hours);
Label2.Caption := IntToStr(Minutes);
Label3.Caption := IntToStr(Seconds);
end;
end;


А получается какая-то херня =(


← →
DeMoN-777 ©   (2002-09-02 19:12) [1]

Плиз, помогите...........


← →
DeMoN-777 ©   (2002-09-02 21:23) [2]

Для тех кому интересно...........
(c) by Алексей Ким

procedure TForm1.Button1Click(Sender: TObject);
var
i: LongInt;
hours,min:integer;
begin
i:=round(mp1.Length/1000);
hours := i div 3600;
i := i - hours*3600;
min := i div 60;
i := i - min*60;
showmessage(IntToStr(hours)+":"+IntToStr(min)+":"+IntToStr(i));
end;





Страницы: 1 вся ветка

Скачать: CL | DM;



Память: 0.45 MB
Время: 0.014 c
1-51698
Berser
2002-12-05 00:54
2002.12.16
AsyncPro 4


7-51986
SergePik
2002-10-14 15:12
2002.12.16
адрес LPT порта в Win2k


1-51662
white
2002-12-05 15:39
2002.12.16
Random


4-52015
Lexa1900
2002-11-02 23:40
2002.12.16
Можно ли как-то сохранять все полученные hwnd?


3-51599
TohaNik
2002-11-23 18:08
2002.12.16
Структура базы




   Наверх