k.w.wang
Its stored as positive and negative numbers, with negative numbers
stored as 2's compliment of the number.
see http://en.wikipedia.org/wiki/Two's_complement
These numbers represent the volume level taken at what ever the sample
rate was for the sample.
So to graph them you just plot volumes along a horizontal line.
Take a sample, and erase one of the two stereo sides, save the file and
then take a look at the data, will help you learn to sort out left and
right side.
Load it back into a sample editor.
see http://ccrma.stanford.edu/courses/422/projects/waveFormat/
libsndfile ( http://www.mega-nerd.com/libsndfile/ ) is a library
for reading and writing sound files.
In the examples/ directory of the source code tarball there
is am example program called make_sine.
Erik
--
+-----------------------------------------------------------+
Erik de Castro Lopo
+-----------------------------------------------------------+
Question #10342: Ruling on a Muslim eating with a kaafir
http://islamqa.com/index.php?ln=eng&ds=qa&lv=browse&QR=10342&dgn=4