Autor Beitrag
Hendrik
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 324



BeitragVerfasst: So 30.03.08 16:26 
Hey!

Seit mehreren Stunden versuche ich verzweifelt, die Länge einer Wave-Datei ohne die MediaPlayer-Kompo zu ermitteln.

Gefunden habe ich folgenden Link: swissdelphicenter.ch...showcode.php?id=1383

Leider habe ich noch ein älteres Delphi, das die Funktion Int64 nicht kennt. Daher funzt das nicht richtig...

Kennt jemand noch eine andere Methode?
Gausi
ontopic starontopic starontopic starontopic starontopic starontopic starofftopic starofftopic star
Beiträge: 8554
Erhaltene Danke: 481

Windows 7, Windows 10
D7 PE, Delphi XE3 Prof, Delphi 10.3 CE
BeitragVerfasst: So 30.03.08 16:35 
Int64 ist keine Funktion, sondern ein Integer-Typ. An der Stelle im Code wird ein Typecast durchgeführt. Probier mal, ob du mit dieser Formel näherungsweise auch gute Ergebnisse bekommst - lass einfach das mal 1000 .../1000 weg, also
ausblenden Delphi-Quelltext
1:
header.DataBytes / header.BytesPerSecond					

_________________
We are, we were and will not be.