FastLED 3.10.8
Loading...
Searching...
No Matches

◆ reset()

void fl::third_party::Mp3StreamDecoderImpl::reset ( )

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

380 {
381 if (mDecoder) {
382 mDecoder->reset();
383 if (!mDecoder->init()) {
384 mErrorMsg = "Failed to reinitialize MP3 decoder";
385 mHasError = true;
386 mDecoder.reset();
387 return;
388 }
389 }
390 mBufferPos = 0;
391 mBufferFilled = 0;
392 mBytesProcessed = 0;
393 mHasError = false;
394 mEndOfStream = false;
395 mHasDecodedFirstFrame = false;
397}
fl::unique_ptr< Mp3SelectedDecoder > mDecoder
Definition mp3.cpp.hpp:305

References fl::FL_NO_EXCEPT, mBufferFilled, mBufferPos, mBytesProcessed, mDecoder, mEndOfStream, mErrorMsg, mHasDecodedFirstFrame, mHasError, and resetVbrState().

+ Here is the call graph for this function: