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

◆ stb_vorbis_get_samples_short() [2/2]

int32_t fl::third_party::vorbis::stb_vorbis_get_samples_short ( stb_vorbis * f,
int32_t channels,
short ** buffer,
int32_t len )

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

5094{
5095 float **outputs;
5096 int32_t n=0;
5097 while (n < len) {
5099 if (n+k >= len) k = len - n;
5100 if (k)
5102 n += k;
5103 f->channel_buffer_start += k;
5104 if (n == len) break;
5105 if (!stb_vorbis_get_frame_float(f, nullptr, &outputs)) break;
5106 }
5107 return n;
5108}
int32_t stb_vorbis_get_frame_float(stb_vorbis *f, int32_t *channels, float ***output) FL_NOEXCEPT
static void convert_samples_short(int32_t buf_c, short **buffer, int32_t b_offset, int32_t data_c, float **data, int32_t d_offset, int32_t samples) FL_NOEXCEPT
float * channel_buffers[FL_STB_VORBIS_MAX_CHANNELS]
fl::i32 int32_t
Definition coder.h:220

References convert_samples_short(), FL_NOEXCEPT, and stb_vorbis_get_frame_float().

+ Here is the call graph for this function: