VBcoders Browse New Submit Contact Sign In

No account? Register free

Forgot password?

GetMP3data

Darren J. Prior  (1 Submission)   Sound/MP3   Visual Basic 3.0   Intermediate   Wed 3rd February 2021

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
(https://www.dv.co.yu/mpgscript/mpeghdr.htm)

Inputs
the full filename of a .mp3 file. eg: d:\artist\album\track1.mp3 The function does not perform any error checking so will fail if it is not a valid mp3 file.

Assumes
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

Rate GetMP3data (7(7 Vote))

Download GetMP3data

GetMP3data Comments

No comments yet — be the first to post one!

Post a Comment

0/1000 characters