FastLED 3.9.15
Loading...
Searching...
No Matches
fl::third_party::Mp3StreamDecoderImpl Class Reference

Detailed Description

Definition at line 125 of file mp3.cpp.hpp.

#include <mp3.cpp.hpp>

+ Collaboration diagram for fl::third_party::Mp3StreamDecoderImpl:

Public Member Functions

 Mp3StreamDecoderImpl () FL_NOEXCEPT
 
 ~Mp3StreamDecoderImpl () FL_NOEXCEPT
 
bool begin (fl::filebuf_ptr stream)
 
bool decodeNextFrame (audio::Sample *out_sample)
 
void end ()
 
Mp3Info getInfo () const
 
fl::size getPosition () const
 
bool hasError (fl::string *msg=nullptr) const
 
bool isReady () const
 
void reset ()
 

Private Member Functions

bool fillBuffer ()
 
bool findAndDecodeFrame (audio::Sample *out_sample)
 

Private Attributes

fl::vector< fl::u8mBuffer
 
fl::size mBufferFilled
 
fl::size mBufferPos
 
fl::size mBytesProcessed
 
fl::unique_ptr< Mp3HelixDecodermDecoder
 
bool mEndOfStream
 
fl::string mErrorMsg
 
bool mHasDecodedFirstFrame
 
bool mHasError
 
Mp3Info mInfo
 
fl::filebuf_ptr mStream
 

Static Private Attributes

static constexpr fl::size BUFFER_SIZE = 4096
 

The documentation for this class was generated from the following file: