tags:

views:

214

answers:

4

I was reading about bitmap images. They are one of the more simple image formats (especially 1 bit bitmaps). I am interested to see what a sound file looks like. May someone refer me to the most simple sound file format?

thanks

Actually, I found this wav file link. If someone else has any other links/words of wisdom they'd like to post I'd appreciate it.

+5  A: 

8-bit mono uncompressed WAV, in my opinion...

wikipedia entry

cruizer
technically yes that is the "simplest", but its well worth going 16 bit if you want half-decent sound quality.
Mark Heath
+3  A: 

Wave files are the simplest sound format. They have a header (which can sometimes be complicated but usually isn't), and then the actual sound data is raw, uncompressed PCM. Because they're uncompressed, though, they get very big very fast for even moderately long sounds.

Adam Rosenfield
yea, bitmap images work the same way. thanks
err... in reference to the header and larger byte size
A: 

WAV is the way to go, although be wary - the WAV file format may actually store compressed data - though it usually doesn't.

I'm using Audacity recently to import raw sound data from a microcontroller system. It can also export raw audio.

That way you can start with sound in nearly any format, and export it as a binary file according to your desire. I'm using 16 bit signed, little endian, mono sound, for instance. Very handy and very easy to manipulate in simple test programs. Can probably even deserialize it in some programming languages into an array or vector.

Adam Davis
+1  A: 

Look into libsndfile http://www.mega-nerd.com/libsndfile/

smcameron