FastLED 3.9.15
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}
const T * data() const FL_NOEXCEPT
Definition span.h:461
constexpr fl::size size() const FL_NOEXCEPT
Definition span.h:458

References close(), fl::span< T, Extent >::data(), mVorbis, and fl::span< T, Extent >::size().

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: