Log in

View Full Version : Get Length of Audio-File!


mag2k4
11th June 2004, 14:35
Hello!
Does anybody know a Delphi-Code to get out the Length of a


OGG-File,
MP2-File or
MPA-File?


The Output should have this Format: hh:mm:ss

It would be great, if anybody have some Code for me!
Thanks for your Help.
mag2k4

esby
21st June 2004, 16:03
If I were you, I'll take a look in the source of a program handling it (in c++ for instance) and ports the calls to delphi....

I'm not sure if the vfw interface would be able to load such files,`
but you might try using it too...
(search MSDN avifile in google)

Once you know the correct calls, getting what you want should be easy.

esby

PS: if you want an example of a vfw interface in delphi i can post some code... once I am at home....