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

◆ stb_vorbis_get_samples_short_interleaved() [2/2]

int32_t fl::third_party::vorbis::stb_vorbis_get_samples_short_interleaved ( stb_vorbis * f,
int32_t channels,
short * buffer,
int32_t num_shorts )

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

5075{
5076 float **outputs;
5077 int32_t len = num_shorts / channels;
5078 int32_t n=0;
5079 while (n < len) {
5081 if (n+k >= len) k = len - n;
5082 if (k)
5084 buffer += k*channels;
5085 n += k;
5086 f->channel_buffer_start += k;
5087 if (n == len) break;
5088 if (!stb_vorbis_get_frame_float(f, nullptr, &outputs)) break;
5089 }
5090 return n;
5091}
static void convert_channels_short_interleaved(int32_t buf_c, short *buffer, int32_t data_c, float **data, int32_t d_offset, int32_t len) FL_NOEXCEPT
int32_t stb_vorbis_get_frame_float(stb_vorbis *f, int32_t *channels, float ***output) FL_NOEXCEPT
float * channel_buffers[FL_STB_VORBIS_MAX_CHANNELS]
fl::i32 int32_t
Definition coder.h:220

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

+ Here is the call graph for this function: