MP3Decoder.decodeNextFrame

Decodes the next frame of data and stores it in frameSamplesFloat (also accessible through frameSamples as short[]).

  1. bool decodeNextFrame()
  2. bool decodeNextFrame(ReadBufFn reader)
    class MP3Decoder
    deprecated
    bool
    decodeNextFrame
    (
    scope ReadBufFn reader
    )

Parameters

reader ReadBufFn

ignored. Overload only provided for API compatibility with older versions of arsd.mp3.

Return Value

Type: bool

true if a new frame was decoded, false if it wasn't. Possible reasons for failure are trying to decode an invalid mp3 (see valid) and reaching end-of-file.

See Also

Meta