arduino-audio-tools
All Classes Namespaces Files Functions Variables Typedefs Enumerations Friends Modules Pages
Classes | Public Member Functions | Protected Member Functions | Protected Attributes | List of all members
ADTSParser Class Reference

Structure to hold ADTS header field values. More...

#include <CodecADTS.h>

Classes

struct  ADTSHeader
 

Public Member Functions

bool begin ()
 
ADTSHeaderdata ()
 
int findSyncWord (const uint8_t *buf, int nBytes, int start=0)
 
uint32_t getFrameLength ()
 
int getSampleRate ()
 
bool isSyncWord (const uint8_t *buf)
 
void log ()
 
bool parse (uint8_t *hdr)
 

Protected Member Functions

bool check ()
 
bool checkRef ()
 

Protected Attributes

const int adtsSamplingRates [13]
 
ADTSHeader header
 
ADTSHeader header_ref
 
bool is_first = true
 
bool is_valid = false
 

Detailed Description

Structure to hold ADTS header field values.

Member Data Documentation

◆ adtsSamplingRates

const int adtsSamplingRates[13]
protected
Initial value:
= {96000, 88200, 64000, 48000, 44100,
32000, 24000, 22050, 16000, 12000,
11025, 8000, 7350}

The documentation for this class was generated from the following file: