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

◆ getn()

static int32_t fl::third_party::vorbis::getn ( vorb * z,
uint8 * data,
int32_t n )
static

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

1088{
1089 if (FL_STBV_USE_MEMORY(z)) {
1090 if (z->stream+n > z->stream_end) { z->eof = 1; return 0; }
1091 memcpy(data, z->stream, n);
1092 z->stream += n;
1093 return 1;
1094 }
1095
1096 #ifndef FL_STB_VORBIS_NO_STDIO
1097 if (fl::fread(data, n, 1, z->f) == 1)
1098 return 1;
1099 else {
1100 z->eof = 1;
1101 return 0;
1102 }
1103 #endif
1104}
uint32_t z[NUM_LAYERS]
Definition Fire2023.h:93
void * memcpy(void *dest, const void *src, size_t n) FL_NOEXCEPT
fl::size_t fread(void *buffer, fl::size_t size, fl::size_t count, FILE *file)
Read from file.
Definition file_io.h:254
#define FL_STBV_USE_MEMORY(z)

References FL_NOEXCEPT, FL_STBV_USE_MEMORY, fl::fread(), memcpy(), and z.

Referenced by get_seek_page_info(), start_decoder(), start_page_no_capturepattern(), and stb_vorbis_stream_length_in_samples().

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