arduino-audio-tools
Loading...
Searching...
No Matches
Public Member Functions | Protected Attributes | List of all members
HeaderParserAAC Class Reference

AAC header parser to check if the data is a valid ADTS aac which can extract some relevant audio information. More...

#include <HeaderParserAAC.h>

Public Member Functions

int findSyncWord (const uint8_t *buf, int nBytes, int start=0)
 Finds the mp3/aac sync word.
 
uint8_t getChannels ()
 
int getFrameLength ()
 Determines the frame length.
 
ADTSParser::ADTSHeader getHeader ()
 
int getSampleRate ()
 
bool isValid (const uint8_t *data, int len)
 

Protected Attributes

ADTSParser parser
 

Detailed Description

AAC header parser to check if the data is a valid ADTS aac which can extract some relevant audio information.

Author
Phil Schatzmann

Member Function Documentation

◆ findSyncWord()

int findSyncWord ( const uint8_t buf,
int  nBytes,
int  start = 0 
)
inline

Finds the mp3/aac sync word.

◆ getChannels()

uint8_t getChannels ( )
inline

◆ getFrameLength()

int getFrameLength ( )
inline

Determines the frame length.

◆ getHeader()

ADTSParser::ADTSHeader getHeader ( )
inline

◆ getSampleRate()

int getSampleRate ( )
inline

◆ isValid()

bool isValid ( const uint8_t data,
int  len 
)
inline

parses the header string and returns true if this is a valid aac adts stream

Member Data Documentation

◆ parser

ADTSParser parser
protected

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