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

Method parseVorbisInfo

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

Source from the content-addressed store, hash-verified

265}
266
267VorbisInfo Vorbis::parseVorbisInfo(fl::span<const fl::u8> data, fl::string* errorMessage) {
268 StbVorbisDecoder decoder;
269 if (!decoder.openMemory(data)) {
270 if (errorMessage) *errorMessage = "Failed to parse Vorbis header";
271 return VorbisInfo();
272 }
273 return decoder.getInfo();
274}
275
276fl::vector<audio::Sample> Vorbis::decodeAll(fl::span<const fl::u8> data, fl::string* errorMessage) {
277 fl::vector<audio::Sample> samples;

Callers

nothing calls this directly

Calls 3

VorbisInfoClass · 0.85
openMemoryMethod · 0.80
getInfoMethod · 0.45

Tested by

no test coverage detected