.Wav Format


amitraj
09-06-2002, 09:34 AM
Hello once again!
I think a lot help i need.
Would some body tell me, when an Audio player reads a file, say a .wav file, does it read it in HEX or in DECIMAL?
I am really unable to get this. I know the format of .wav files. And i want to write a .wav file.
Now i am facing problem to write. Should i start wiht RIFF or Its HEX counterpart or its DECIMAL counterpart.
If anybody has some information do tell me.
Thank you.
Regards. bye take care.
helloamitraj@india.com

Sherlock
09-11-2002, 05:25 PM
Amitraj,

The contents of the WAV format file are a combination of ASCII text and binary numbers. For example, the "RIFF" that you speak of, is actually stored as 4 ASCII characters, but the audio data is stored as binary. A very detailed description, with a file dump of an actual example WAV file, can be found at

www.technology.niagarac.on.ca/courses/comp630/WavFileFormat.html


The numerical contents of the file will normally be read in as bytes. The number of bytes per sample and the sample rate are specified in the header.