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

#include <CodecWavIMA.h>

Public Member Functions

 WavIMAHeader ()
 
WavIMAAudioInfoaudioInfo ()
 
void clearHeader ()
 
bool isDataComplete ()
 Returns true if the header is complete (data chunk has been found)
 
chunk_result parseChunk ()
 
int write (uint8_t *data, size_t data_len)
 

Protected Member Functions

int getChar ()
 
void logInfo ()
 
uint16_t read_int16 ()
 
uint32_t read_int32 ()
 
uint32_t read_tag ()
 
void skip (int n)
 

Protected Attributes

uint8_t chunk_buffer [28]
 
size_t chunk_len = 0
 
size_t data_pos = 0
 
bool header_complete = false
 
struct WavIMAAudioInfo headerInfo
 
bool isFirstChunk = true
 
size_t max_chunk_len = 8
 
size_t skip_len = 0
 

Constructor & Destructor Documentation

◆ WavIMAHeader()

WavIMAHeader ( )
inline

Member Function Documentation

◆ audioInfo()

WavIMAAudioInfo & audioInfo ( )
inline

◆ clearHeader()

void clearHeader ( )
inline

◆ getChar()

int getChar ( )
inlineprotected

◆ isDataComplete()

bool isDataComplete ( )
inline

Returns true if the header is complete (data chunk has been found)

◆ logInfo()

void logInfo ( )
inlineprotected

◆ parseChunk()

chunk_result parseChunk ( )
inline

◆ read_int16()

uint16_t read_int16 ( )
inlineprotected

◆ read_int32()

uint32_t read_int32 ( )
inlineprotected

◆ read_tag()

uint32_t read_tag ( )
inlineprotected

◆ skip()

void skip ( int  n)
inlineprotected

◆ write()

int write ( uint8_t data,
size_t  data_len 
)
inline

Member Data Documentation

◆ chunk_buffer

uint8_t chunk_buffer[28]
protected

◆ chunk_len

size_t chunk_len = 0
protected

◆ data_pos

size_t data_pos = 0
protected

◆ header_complete

bool header_complete = false
protected

◆ headerInfo

struct WavIMAAudioInfo headerInfo
protected

◆ isFirstChunk

bool isFirstChunk = true
protected

◆ max_chunk_len

size_t max_chunk_len = 8
protected

◆ skip_len

size_t skip_len = 0
protected

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