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

◆ stb_vorbis_get_file_offset()

uint32_t fl::third_party::vorbis::stb_vorbis_get_file_offset ( stb_vorbis * f)

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

4304{
4305 #ifndef FL_STB_VORBIS_NO_PUSHDATA_API
4306 if (f->push_mode) return 0;
4307 #endif
4308 if (FL_STBV_USE_MEMORY(f)) return (uint32_t) (f->stream - f->stream_start);
4309 #ifndef FL_STB_VORBIS_NO_STDIO
4310 return (uint32_t) (fl::ftell(f->f) - f->f_start);
4311 #endif
4312}
fl::u32 uint32_t
Definition coder.h:219
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, and fl::ftell().

Referenced by get_seek_page_info(), go_to_page_before(), seek_to_sample_coarse(), start_decoder(), start_page_no_capturepattern(), stb_vorbis_stream_length_in_samples(), and vorbis_find_page().

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