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

◆ stb_vorbis_get_frame_short_interleaved() [2/2]

int32_t fl::third_party::vorbis::stb_vorbis_get_frame_short_interleaved ( stb_vorbis * f,
int32_t num_c,
short * buffer,
int32_t num_shorts )

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

5062{
5063 float **output;
5064 int32_t len;
5065 if (num_c == 1) return stb_vorbis_get_frame_short(f,num_c,&buffer, num_shorts);
5066 len = stb_vorbis_get_frame_float(f, nullptr, &output);
5067 if (len) {
5068 if (len*num_c > num_shorts) len = num_shorts / num_c;
5069 convert_channels_short_interleaved(num_c, buffer, f->channels, output, 0, len);
5070 }
5071 return len;
5072}
int32_t stb_vorbis_get_frame_short(stb_vorbis *f, int32_t num_c, short **buffer, int32_t num_samples) FL_NOEXCEPT
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
fl::i32 int32_t
Definition coder.h:220

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

Referenced by stb_vorbis_decode_filename(), and stb_vorbis_decode_memory().

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