I have used several audio programs such as SDL mixer, audacity, etc. but I want to see what’s inside these little audio toys. How does audio data get processed and such. I’ve also seen some sample codes of an MP3 player in C++ that it uses void* for audio data.
But all these do not help me understand in general about how audio work in computer. So could somebody explain to me (or introduce me some books) on how do computers store and process digital audio data? (for instance, if you store a triangle waveform into a .wav file, how does this waveform get stored as bit pattern?)
How Waveforms are represented
There is a more detailed explanation of how audio is represented in the Audacity manual:
…the height of each vertical line is represented as a signed number.
More about Digital Audio
You may notice that all these links come from the Audacity project. That’s not a coincidence.