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

◆ plm_decode_audio()

plm_samples_t * fl::third_party::plm_decode_audio ( plm_t * self)

Definition at line 552 of file pl_mpeg.hpp.

552 {
553 if (!plm_init_decoders(self)) {
554 return NULL;
555 }
556
557 if (!self->audio_packet_type) {
558 return NULL;
559 }
560
561 plm_samples_t *samples = plm_audio_decode(self->audio_decoder);
562 if (samples) {
563 self->time = samples->time;
564 }
565 else if (plm_demux_has_ended(self->demux)) {
566 plm_handle_end(self);
567 }
568 return samples;
569}
#define NULL
void plm_handle_end(plm_t *self) FL_NOEXCEPT
Definition pl_mpeg.hpp:571
plm_samples_t * plm_audio_decode(plm_audio_t *self) FL_NOEXCEPT
Definition pl_mpeg.hpp:3296
int plm_init_decoders(plm_t *self) FL_NOEXCEPT
Definition pl_mpeg.hpp:261
int plm_demux_has_ended(plm_demux_t *self) FL_NOEXCEPT
Definition pl_mpeg.hpp:1293
plm_demux_t * demux
Definition pl_mpeg.hpp:196
plm_audio_t * audio_decoder
Definition pl_mpeg.hpp:212

References FL_NOEXCEPT, NULL, plm_audio_decode(), plm_demux_has_ended(), plm_handle_end(), plm_init_decoders(), and fl::third_party::plm_samples_t::time.

+ Here is the call graph for this function: