FastLED 3.9.15
Loading...
Searching...
No Matches

◆ parseVorbisInfo()

VorbisInfo fl::Vorbis::parseVorbisInfo ( fl::span< const fl::u8 > data,
fl::string * errorMessage = nullptr )
static

Definition at line 267 of file vorbis.cpp.hpp.

267 {
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}

References fl::StbVorbisDecoder::getInfo(), and fl::StbVorbisDecoder::openMemory().

+ Here is the call graph for this function: