Developer World
Spresense SDK Library v3.3.0-375c679
WavContainerFormat Class Reference

Public Member Functions

bool init (uint16_t format_id, uint16_t channel_number, uint32_t sampling_rate)
 Init function. More...
 
bool init (uint16_t format_id, uint16_t channel_number, uint32_t sampling_rate, uint8_t bitwidth)
 Init function (Bitwidth can be specified) More...
 
bool getHeader (WAVHEADER *wav_header, uint32_t data_size)
 Get WAV header. More...
 

Member Function Documentation

◆ init() [1/2]

bool init ( uint16_t  format_id,
uint16_t  channel_number,
uint32_t  sampling_rate 
)

Init function.

Set WAV container information A bitlength is fixed to 16bit

Parameters
[in]format_idWAV format type
[in]channel_numberNumber of channels
[in]sampling_rateSampling rate

◆ init() [2/2]

bool init ( uint16_t  format_id,
uint16_t  channel_number,
uint32_t  sampling_rate,
uint8_t  bitwidth 
)

Init function (Bitwidth can be specified)

Set WAV container information

Parameters
[in]format_idWAV format type
[in]channel_numberNumber of channels
[in]sampling_rateSampling rate
[in]bitwidthBit per sample

◆ getHeader()

bool getHeader ( WAVHEADER wav_header,
uint32_t  data_size 
)

Get WAV header.

Get WAV container header information. The Informations depends on parameters of "init()".

Parameters
[out]wav_headerWAV continer header
[in]data_sizeWav data size to set header parameter

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