MCPcopy Create free account
hub / github.com/FastLED/FastLED / reset

Method reset

src/fl/codec/mp3.cpp.hpp:49–58  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

47}
48
49void Mp3HelixDecoder::reset() {
50 if (mDecoder) {
51 MP3FreeDecoder(static_cast<HMP3Decoder>(mDecoder));
52 mDecoder = nullptr;
53 }
54
55 mPcmBuffer.reset();
56
57 fl::memset(&mFrameInfo, 0, sizeof(mFrameInfo));
58}
59
60int Mp3HelixDecoder::findSyncWord(const fl::u8* buf, fl::size len) {
61 int offset = MP3FindSyncWord(buf, static_cast<int>(len));

Callers 3

initMethod · 0.45
beginMethod · 0.45
endMethod · 0.45

Calls 2

memsetFunction · 0.85
initMethod · 0.45

Tested by

no test coverage detected