FastLED 3.9.15
Loading...
Searching...
No Matches
mp3dec.h File Reference
#include "fl/stl/cstddef.h"
#include "fl/stl/noexcept.h"
+ Include dependency graph for mp3dec.h:
+ This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  _MP3FrameInfo
 

Macros

#define MAINBUF_SIZE   1940
 
#define MAX_NCHAN   2 /* max channels */
 
#define MAX_NGRAN   2 /* max granules */
 
#define MAX_NSAMP   576 /* max samples per channel, per granule */
 

Typedefs

typedef void * HMP3Decoder
 
typedef struct _MP3FrameInfo MP3FrameInfo
 

Enumerations

enum  {
  ERR_MP3_NONE = 0 , ERR_MP3_INDATA_UNDERFLOW = -1 , ERR_MP3_MAINDATA_UNDERFLOW = -2 , ERR_MP3_FREE_BITRATE_SYNC = -3 ,
  ERR_MP3_OUT_OF_MEMORY = -4 , ERR_MP3_NULL_POINTER = -5 , ERR_MP3_INVALID_FRAMEHEADER = -6 , ERR_MP3_INVALID_SIDEINFO = -7 ,
  ERR_MP3_INVALID_SCALEFACT = -8 , ERR_MP3_INVALID_HUFFCODES = -9 , ERR_MP3_INVALID_DEQUANTIZE = -10 , ERR_MP3_INVALID_IMDCT = -11 ,
  ERR_MP3_INVALID_SUBBAND = -12 , ERR_UNKNOWN = -9999
}
 
enum  MPEGVersion { MPEG1 = 0 , MPEG2 = 1 , MPEG25 = 2 }
 

Functions

int MP3Decode (HMP3Decoder hMP3Decoder, const unsigned char **inbuf, size_t *bytesLeft, short *outbuf, int useSize) FL_NOEXCEPT
 
int MP3FindSyncWord (const unsigned char *buf, int nBytes) FL_NOEXCEPT
 
void MP3FreeDecoder (HMP3Decoder hMP3Decoder) FL_NOEXCEPT
 
void MP3GetLastFrameInfo (HMP3Decoder hMP3Decoder, MP3FrameInfo *mp3FrameInfo) FL_NOEXCEPT
 
int MP3GetNextFrameInfo (HMP3Decoder hMP3Decoder, MP3FrameInfo *mp3FrameInfo, unsigned char *buf) FL_NOEXCEPT
 
HMP3Decoder MP3InitDecoder (void) FL_NOEXCEPT
 

Class Documentation

◆ _MP3FrameInfo

struct _MP3FrameInfo
Class Members
int bitrate
int bitsPerSample
int layer
int nChans
int outputSamps
int samprate
int version