Autor Beitrag
Spatz
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 57

WIN 2k
D7E
BeitragVerfasst: Fr 11.02.05 16:04 
Hallo

Wie kann man die Abspieldauer einer Musikdatei (mp3, evt. auch andere) aus einer Datei auslesen?

Besten Dank
retnyg
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starofftopic star
Beiträge: 2754

SNES, GB, GBA, CPC, A500, 486/66, P4/3.0HT: NintendOS, AmigaOS, DoS
Delphi 5, Delphi 7
BeitragVerfasst: Fr 11.02.05 16:10 
du kannst den tmediaplayer einbinden und das musikfile zuweisen. dann siehst du mit tmediaplayer1.length die anzahl der millisekunden, die das stück dauert.
Spatz Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 57

WIN 2k
D7E
BeitragVerfasst: Fr 11.02.05 16:29 
ok, so gehts, es dauert aber eine ewigkeit, bis das file geladen ist (wenn ich dies mit hunderten von liedern tun will, geht es eine ewigkeit).
hab schon mal was von der bass.dll gehört, komme jedoch nicht klar, wie man diese anwenden muss... hat jemand hiermit schon gearbeitet?
Luckie
Ehemaliges Mitglied
Erhaltene Danke: 1



BeitragVerfasst: Fr 11.02.05 16:33 
Jupp und ich war in der Lage alle Probleme mit Hilfe der sehr guten Hilfe und den Delphgi Demos zu lösen.
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: Fr 11.02.05 16:39 
Nein, mit Bass habe ich noch nicht gearbeitet, aber mit der Spiellänge hab ich mich mal beschäftigt: hier
Ist schon ne Weile her, dass ich das geschrieben habe, und aus heutiger Sicht muss ich sagen: Ein grausiges Stück Code. Hinzu kommt, dass "schlechte" mp3s nicht erkannt werden (also Bitrate oder Samplerate gering und mono). Aber bei normalen mp3s klappt das ganz gut, und es ist sehr schnell.

_________________
We are, we were and will not be.
tommie-lie
ontopic starontopic starontopic starontopic starontopic starofftopic starofftopic starofftopic star
Beiträge: 4373

Ubuntu 7.10 "Gutsy Gibbon"

BeitragVerfasst: Fr 11.02.05 17:08 

_________________
Your computer is designed to become slower and more unreliable over time, so you have to upgrade. But if you'd like some false hope, I can tell you how to defragment your disk. - Dilbert