Resources - Quefumas/gensound GitHub Wiki

DSP

Learn about DSP, sampling, filters, etc. Also code samples for transforms we may wish to implement.

File I/O libraries to look at & support

Specific details about file format implementation:

WAV format info:

Surprisingly, documentation is laconic about the actual representation of the sample info itself.

From what I've gathered, when wFormatTag==1 (WAVE_FORMAT_PCM), the samples are 8-,16-,24-, or 32-bit integers, stored as 2's complement signed little-endian, with the exception of 8-bit, which is unsigned (i.e. amplitude ranging 0-255).

For 32-bit float, need to specify wFormatTag=3 (WAVE_FORMAT_IEEE_FLOAT).