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

◆ vorbis_init()

static void fl::third_party::vorbis::vorbis_init ( stb_vorbis * p,
const stb_vorbis_alloc * z )
static

Definition at line 4036 of file stb_vorbis.cpp.hpp.

4037{
4038 memset(p, 0, sizeof(*p)); // nullptr out all malloc'd pointers to start
4039 if (z) {
4040 p->alloc = *z;
4043 }
4044 p->eof = 0;
4046 p->stream = nullptr;
4047 p->codebooks = nullptr;
4048 p->page_crc_tests = -1;
4049 #ifndef FL_STB_VORBIS_NO_STDIO
4050 p->close_on_free = false;
4051 p->f = nullptr;
4052 #endif
4053}
uint32_t z[NUM_LAYERS]
Definition Fire2023.h:93
void * memset(void *s, int c, size_t n) FL_NOEXCEPT

References FL_NOEXCEPT, memset(), VORBIS__no_error, and z.

Referenced by stb_vorbis_open_file_section(), stb_vorbis_open_memory(), and stb_vorbis_open_pushdata().

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