Data Fields

WavFile Struct Reference

#include <io_wav.h>

Data Fields

uint16_t bits_per_sample
uint16_t blockalign
uint32_t byterate
void * data
uint32_t data_size
uint16_t numchannels
uint32_t samplerate

Detailed Description

Definition at line 46 of file io_wav.h.


Field Documentation

Definition at line 53 of file io_wav.h.

== NumChannels * BitsPerSample/8 The number of bytes for one sample including all channels.

Definition at line 50 of file io_wav.h.

== SampleRate * NumChannels * BitsPerSample/8

Definition at line 49 of file io_wav.h.

8-bit samples are stored as unsigned bytes, ranging from 0 to 255. 16-bit samples are stored as 2's-complement signed integers, ranging from -32768 to 32767.

Definition at line 57 of file io_wav.h.

== NumSamples * NumChannels * BitsPerSample/8 This is the number of bytes in the data.

Definition at line 55 of file io_wav.h.

Mono = 1, Stereo = 2, etc.

Definition at line 47 of file io_wav.h.

Definition at line 48 of file io_wav.h.


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