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

Method openMemory

src/fl/codec/vorbis.cpp.hpp:37–43  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

35}
36
37bool StbVorbisDecoder::openMemory(fl::span<const fl::u8> data) {
38 close(); // Close any existing stream
39
40 fl::i32 error = 0;
41 mVorbis = vb::stb_vorbis_open_memory(data.data(), static_cast<fl::i32>(data.size()), &error, nullptr);
42 return mVorbis != nullptr;
43}
44
45void StbVorbisDecoder::close() {
46 if (mVorbis) {

Callers 4

beginMethod · 0.80
parseVorbisInfoMethod · 0.80
decodeAllMethod · 0.80
vorbis.hppFile · 0.80

Calls 3

closeFunction · 0.50
dataMethod · 0.45
sizeMethod · 0.45

Tested by

no test coverage detected