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

◆ plm_set_audio_enabled()

void fl::third_party::plm_set_audio_enabled ( plm_t * self,
int enabled )

Definition at line 344 of file pl_mpeg.hpp.

344 {
345 self->audio_enabled = enabled;
346
347 if (!enabled) {
348 self->audio_packet_type = 0;
349 return;
350 }
351
352 self->audio_packet_type = (plm_init_decoders(self) && self->audio_decoder)
354 : 0;
355}
static const int PLM_DEMUX_PACKET_AUDIO_1
Definition pl_mpeg.h:590
int plm_init_decoders(plm_t *self) FL_NOEXCEPT
Definition pl_mpeg.hpp:261
plm_audio_t * audio_decoder
Definition pl_mpeg.hpp:212

References FL_NOEXCEPT, PLM_DEMUX_PACKET_AUDIO_1, and plm_init_decoders().

Referenced by fl::third_party::SoftwareMpeg1Decoder::initializeDecoder(), plm_set_audio_stream(), and fl::third_party::SoftwareMpeg1Decoder::setAudioCallback().

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