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

◆ skip()

static void fl::third_party::vorbis::skip ( vorb * z,
int32_t n )
static

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

1107{
1108 if (FL_STBV_USE_MEMORY(z)) {
1109 z->stream += n;
1110 if (z->stream >= z->stream_end) z->eof = 1;
1111 return;
1112 }
1113 #ifndef FL_STB_VORBIS_NO_STDIO
1114 {
1115 long x = fl::ftell(z->f);
1116 fl::fseek(z->f, x+n, fl::io::seek_set);
1117 }
1118 #endif
1119}
uint32_t z[NUM_LAYERS]
Definition Fire2023.h:93
constexpr int seek_set
Definition file_io.h:40
int fseek(FILE *file, long offset, int origin)
Set file position.
Definition file_io.h:266
long ftell(FILE *file)
Get current file position.
Definition file_io.h:262
#define FL_STBV_USE_MEMORY(z)

References FL_NOEXCEPT, FL_STBV_USE_MEMORY, fl::fseek(), fl::ftell(), fl::io::seek_set, fl::x, and z.

Referenced by peek_decode_initial(), seek_to_sample_coarse(), and start_decoder().

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