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

◆ MP3FindSyncWord()

int fl::third_party::MP3FindSyncWord ( const unsigned char * buf,
int nBytes )

Definition at line 116 of file mp3dec.hpp.

117{
118 int i;
119
120 /* find byte-aligned syncword - need 12 (MPEG 1,2) or 11 (MPEG 2.5) matching bits */
121 for (i = 0; i < nBytes - 1; i++) {
122 if ( (buf[i+0] & SYNCWORDH) == SYNCWORDH && (buf[i+1] & SYNCWORDL) == SYNCWORDL )
123 return i;
124 }
125
126 return -1;
127}
#define SYNCWORDL
Definition mp3common.h:64
#define SYNCWORDH
Definition mp3common.h:63

References FL_NOEXCEPT, SYNCWORDH, and SYNCWORDL.

Referenced by fl::third_party::Mp3HelixDecoder::findSyncWord(), and MP3FindFreeSync().

+ Here is the caller graph for this function: