mIRC Homepage
Posted By: EviL_SmUrF mp3 file length - 24/01/03 03:36 AM
what would the $file(filename).blah be for an mp3 file length and for the kbps?
Posted By: R1pl3y Re: mp3 file length - 24/01/03 06:46 AM
$sound(filename)
Returns either the directory for that file type, as above, or information about the sound file. Currently, only mp3 files are supported with the following properties.

Properties: album, title, artist, year, comment, genre, track, length, version, bitrate, vbr, sample, mode, copyright, private, crc

$sound(filename).length
$sound(filename).bitrate
Posted By: EviL_SmUrF Re: mp3 file length - 24/01/03 02:02 PM
for some reason it returned 249999. . . . . .


what am i supposed to do with that number? lol
Posted By: BlackAle Re: mp3 file length - 24/01/03 03:30 PM
Use...

$file(filename).size ...for file size in bytes
$sound(filename).bitrate ...for bitrate

not sure what $sound(filename).length is returning, my guess is it's the number of frames the mp3 contains.
Posted By: starbucks_mafia Re: mp3 file length - 24/01/03 03:56 PM
$sound().length returns the length of the song in milliseconds.
Posted By: Hammer Re: mp3 file length - 25/01/03 09:52 AM
Also, if you are using mIRC's /splay to play the song, you can use $insong (returns $true or $false by itself) to return $insong.fname for the filename, $insong.length for the length of the song in milliseconds and $insong.pos to tell you the current position, also in milliseconds. laugh
© mIRC Discussion Forums