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

◆ plm_audio_find_frame_sync()

int fl::third_party::plm_audio_find_frame_sync ( plm_audio_t * self)

Definition at line 3324 of file pl_mpeg.hpp.

3324 {
3325 size_t i;
3326 for (i = self->buffer->bit_index >> 3; i < self->buffer->length-1; i++) {
3327 if (
3328 self->buffer->bytes[i] == 0xFF &&
3329 (self->buffer->bytes[i+1] & 0xFE) == 0xFC
3330 ) {
3331 self->buffer->bit_index = ((i+1) << 3) + 3;
3332 return TRUE;
3333 }
3334 }
3335 self->buffer->bit_index = (i + 1) << 3;
3336 return FALSE;
3337}
#define TRUE
Definition pl_mpeg.hpp:174
#define FALSE
Definition pl_mpeg.hpp:175

References FALSE, FL_NOEXCEPT, and TRUE.

Referenced by plm_audio_decode_header().

+ Here is the caller graph for this function: