Static methods

staticgetBitrate(mpegVersion:Int, layerIdx:Int, bitrateIdx:Int):Bitrate

Returns kbps

staticgetFrameInfo(fr:MP3Frame):String

Displays frame info in human-readable format. Subject to change, do not use for programmatical parsing!

staticgetSampleCount(mpegVersion:Int):Int

Returns the number of samples in the frame.

staticgetSampleDataSize(mpegVersion:Int, bitrate:Int, samplingRate:Int, isPadded:Bool, hasCrc:Bool):Int

Return sample data size. Note that the 4 bytes subtracted is the size of the header, so this 4 bytes less the frame size.

Also, 2 bytes are subtracted for CRC too, if present

staticgetSamplingRate(mpegVersion:Int, samplingRateIdx:Int):SamplingRate

Returns Hz

staticisInvalidFrameHeader(hdr:MP3Header):Bool

Tells whether the header is invalid.