Wafer
Wafer is a library for writing 8-bit PCM WAVE files. It is written in C and consists of a single header:
wafer.h. It is part of Misk.
Here is an example of using Wafer to write an audio file that has 1 channel and 22050 samples per second:
Here is the audio file, which is very loud:
Fun fact: Each sample in the audio file corresponds to a pixel in the following PQ image.
From top to bottom and left to right, a white pixel corresponds to a sample with amplitude 255, and a black pixel
corresponds to a sample with amplitude 0: