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

◆ stb_vorbis_get_frame_float()

int32_t fl::third_party::vorbis::stb_vorbis_get_frame_float ( stb_vorbis * f,
int32_t * channels,
float *** output )

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

4787{
4788 int32_t len, right,left,i;
4790
4791 if (!vorbis_decode_packet(f, &len, &left, &right)) {
4793 return 0;
4794 }
4795
4796 len = vorbis_finish_frame(f, len, left, right);
4797 for (i=0; i < f->channels; ++i)
4798 f->outputs[i] = f->channel_buffers[i] + left;
4799
4800 f->channel_buffer_start = left;
4801 f->channel_buffer_end = left+len;
4802
4803 if (channels) *channels = f->channels;
4804 if (output) *output = f->outputs;
4805 return len;
4806}
static int32_t error(vorb *f, enum STBVorbisError e) FL_NOEXCEPT
static int32_t vorbis_finish_frame(stb_vorbis *f, int32_t len, int32_t left, int32_t right) FL_NOEXCEPT
static int32_t vorbis_decode_packet(vorb *f, int32_t *len, int32_t *p_left, int32_t *p_right) FL_NOEXCEPT
float * channel_buffers[FL_STB_VORBIS_MAX_CHANNELS]
float * outputs[FL_STB_VORBIS_MAX_CHANNELS]
fl::i32 int32_t
Definition coder.h:220
#define FL_STBV_IS_PUSH_MODE(f)

References error(), FL_NOEXCEPT, FL_STBV_IS_PUSH_MODE, vorbis_decode_packet(), vorbis_finish_frame(), and VORBIS_invalid_api_mixing.

Referenced by stb_vorbis_get_frame_short(), stb_vorbis_get_frame_short_interleaved(), stb_vorbis_get_samples_float(), stb_vorbis_get_samples_float_interleaved(), stb_vorbis_get_samples_short(), stb_vorbis_get_samples_short_interleaved(), and stb_vorbis_seek().

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