FastLED 3.10.6
Loading...
Searching...
No Matches

◆ fnv1a()

fl::u32 autoresearch::mp3_check::fnv1a ( fl::u32 hash,
const fl::i16 * samples,
fl::u32 count )
inline

Definition at line 64 of file AutoResearchMp3.h.

64 {
65 for (fl::u32 i = 0; i < count; ++i) {
66 const fl::u16 v = (fl::u16)samples[i];
67 hash = (hash ^ (fl::u8)(v & 0xFF)) * 16777619u;
68 hash = (hash ^ (fl::u8)(v >> 8)) * 16777619u;
69 }
70 return hash;
71}
unsigned char u8
Definition stdint.h:131

Referenced by decodeStream().

+ Here is the caller graph for this function: