Constructor

new(i:Input)

Methods

read():MP3

Reads the MP3 data.

Currently returns all valid frames.

readFrame():MP3Frame

Reads a frame from the input.

The input position should already be just past the 11 bit syncword.

Returns null if the header is invalid or the frame was incomplete.

readFrameHeader():MP3Header

Returns null if header proves to be invalid.

readFrames():Array<MP3Frame>

Returns all valid frames. Invalid frames are discarded.

seekFrame():FrameType

Winds the input stream until the 11-bit syncword is found.

Returns:

Bool false if not found (this should happen at eof).

skipID3v2():Void

Called after found 'ID3' signature at the beginning of the file.

Records the raw tag data.