format 1.20 Documentation
Back | Index
class format.mp3.Tools
- static function getBitrate(mpegVersion : Int, layerIdx : Int, bitrateIdx : Int) : Bitrate
- Returns kbps
- static function getFrameInfo(fr : MP3Frame) : String
- Displays frame info in human-readable format. Subject to change, do not use for programmatical parsing!
- static function getSampleCount(mpegVersion : Int) : Int
- Returns the number of samples in the frame.
- static function getSampleCountHdr(hdr : MP3Header) : Int
- static function getSampleDataSize(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
- static function getSampleDataSizeHdr(hdr : MP3Header) : Int
- static function getSamplingRate(mpegVersion : Int, samplingRateIdx : Int) : SamplingRate
- Returns Hz
- static function isInvalidFrameHeader(hdr : MP3Header) : Bool
- Tells whether the header is invalid.