Struct AUDIOFILE_INFO

Struct Documentation

struct AUDIOFILE_INFO

Audio Info structure (Wav file)

Public Members

int cbSize

Structure size

unsigned int length

File data size

uint32_t headerChunkSize

Wav chunk size

int formatChunkOffset

Offset to fmt section

uint32_t formatChunkSize

Fmt section size

int16_t audioFormat

Data format (PCM/ADPCM/IEEE_FLOAT)

int16_t numChannels

Number of channels

uint32_t sampleRate

Samples per second

int32_t numBytesPerSecond

Bytes per second == sampleRate * numChannels * bitDepth/8

int16_t numBytesPerBlock

Bytes per sample == numChannels * bitDepth/8

int bitDepth

Bits per sample

int dataChunkOffset

Offset to data section

uint32_t dataChunkSize

Samples raw data size

void *dataChunkRawData

Pointer to samples raw data