arduino-audio-tools
Loading...
Searching...
No Matches
CodecWavIMA.h File Reference

Go to the source code of this file.

Classes

struct  IMAState
struct  WavIMAAudioInfo
 Sound information which is available in the WAV header - adjusted for IMA ADPCM. More...
class  WavIMADecoder
 Obsolete: WavIMADecoder - based on WAVDecoder - We parse the header data as we receive it and send the sound data to the stream which was indicated in the constructor. Only WAV files with WAVE_FORMAT_IMA_ADPCM are supported by this codec! More...
class  WavIMAHeader

Namespaces

namespace  audio_tools
 Generic Implementation of sound input and output for desktop environments using portaudio.

Macros

#define READ_BUFFER_SIZE   512
#define TAG(a, b, c, d)
#define WAVE_FORMAT_IMA_ADPCM   0x0011

Enumerations

enum  chunk_result { IMA_ERR_INVALID_CHUNK = -2 , IMA_ERR_INVALID_CONTAINER , IMA_CHUNK_OK , IMA_CHUNK_UNKNOWN }
 Parser for Wav header data adjusted for IMA ADPCM format - partially based on CodecWAV.h for details see https://de.wikipedia.org/wiki/RIFF_WAVE. More...

Variables

const int16_t ima_index_table [16]
const int32_t ima_step_table [89]
const char * wav_ima_mime = "audio/x-wav"

Macro Definition Documentation

◆ READ_BUFFER_SIZE

#define READ_BUFFER_SIZE   512

◆ TAG

#define TAG ( a,
b,
c,
d )
Value:
((static_cast<uint32_t>(a) << 24) | (static_cast<uint32_t>(b) << 16) | (static_cast<uint32_t>(c) << 8) | (d))

◆ WAVE_FORMAT_IMA_ADPCM

#define WAVE_FORMAT_IMA_ADPCM   0x0011