Tools Links Login

GetMP3data

Calculates the duration in seconds of a .mp3 file. Also displays the associated layer, bitrate, sample rate of the file.

I've bundled the function into a project to display how it should be called. This function does not read id3 tags. Search Visual Basic World for 'id3 tag'.

Much thanks to Predrag Supurovic's page on MPEG frame headers (http://www.dv.co.yu/mpgscript/mpeghdr.htm)

Original Author: Darren J. Prior

Inputs

the full filename of a .mp3 file. eg: d:artistalbum rack1.mp3
The function does not perform any error checking so will fail if it is not a
valid mp3 file.

Assumptions

read the web page mentioned earlier for more info on mp3 frames.

Returns

see inside the function for the mp3_ variables that are generated.

Side Effects

no error checking of file

About this post

Posted: 2002-06-01
By: ArchiveBot
Viewed: 105 times

Categories

Visual Basic 6

Attachments

CODE_UPLOAD1488.zip
Posted: 9/3/2020 3:45:00 PM
Size: 3,738 bytes


Loading Comments ...

Comments

No comments have been added for this post.

You must be logged in to make a comment.