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

◆ MP3GetNextFrameInfo()

int fl::third_party::MP3GetNextFrameInfo ( HMP3Decoder hMP3Decoder,
MP3FrameInfo * mp3FrameInfo,
unsigned char * buf )

Definition at line 233 of file mp3dec.hpp.

234{
235 MP3DecInfo *mp3DecInfo = (MP3DecInfo *)hMP3Decoder;
236
237 if (!mp3DecInfo)
239
240 if (UnpackFrameHeader(mp3DecInfo, buf) == -1 || mp3DecInfo->layer != 3)
242
243 MP3GetLastFrameInfo(mp3DecInfo, mp3FrameInfo);
244
245 return ERR_MP3_NONE;
246}
struct _MP3DecInfo MP3DecInfo
@ ERR_MP3_NONE
Definition mp3dec.h:91
@ ERR_MP3_INVALID_FRAMEHEADER
Definition mp3dec.h:97
@ ERR_MP3_NULL_POINTER
Definition mp3dec.h:96
int UnpackFrameHeader(MP3DecInfo *mp3DecInfo, const unsigned char *buf) FL_NOEXCEPT
void MP3GetLastFrameInfo(HMP3Decoder hMP3Decoder, MP3FrameInfo *mp3FrameInfo) FL_NOEXCEPT
Definition mp3dec.hpp:196

References ERR_MP3_INVALID_FRAMEHEADER, ERR_MP3_NONE, ERR_MP3_NULL_POINTER, FL_NOEXCEPT, _MP3DecInfo::layer, MP3GetLastFrameInfo(), and UnpackFrameHeader().

+ Here is the call graph for this function: