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

◆ stb_vorbis_get_frame_short() [2/2]

int32_t fl::third_party::vorbis::stb_vorbis_get_frame_short ( stb_vorbis * f,
int32_t num_c,
short ** buffer,
int32_t num_samples )

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

5026{
5027 float **output = nullptr;
5028 int32_t len = stb_vorbis_get_frame_float(f, nullptr, &output);
5029 if (len > num_samples) len = num_samples;
5030 if (len)
5031 convert_samples_short(num_c, buffer, 0, f->channels, output, 0, len);
5032 return len;
5033}
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
fl::i32 int32_t
Definition coder.h:220

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

Referenced by stb_vorbis_get_frame_short_interleaved().

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