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

◆ openMemory()

bool fl::StbVorbisDecoder::openMemory ( fl::span< const fl::u8 > data)

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

37 {
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}
void close() FL_NO_EXCEPT
const T * data() const FL_NO_EXCEPT
Definition span.h:486
constexpr fl::size size() const FL_NO_EXCEPT
Definition span.h:483

References close(), fl::FL_NO_EXCEPT, and mVorbis.

Referenced by fl::Vorbis::decodeAll(), and fl::Vorbis::parseVorbisInfo().

+ Here is the call graph for this function:
+ Here is the caller graph for this function: