How to interpret WAV data?
- From: "Peter Reichard" <lemoncore@xxxxxxxxxxx>
- Date: Wed, 18 May 2005 14:07:15 +0200
Hi,
I am writting a program to draw a sample curve. I have read some online
documents about the WAV formate, however, my curve doesn't look like in
other sample editors.
If I have a 8bit mono sample, one article described that the data is saved
like:
channel 0 | channel 0 | channel 0
[BYTE] [BYTE] [BYTE]
The range for each value is therefore 0-255 (128 means zero). However, an
other article says that each channel ist stored as an integer. For me, that
means 2 bytes, like:
channel 0 | channel 0 | channel 0
[BYTE][BYTE] [BYTE][BYTE] [BYTE][BYTE]
Because it has the same range (0-255), it would be a waste of memory and
only applicable for 16bit mono samples. What is the correct storage scheme?
Thanks
.
- Follow-Ups:
- Re: How to interpret WAV data?
- From: Iain
- Re: How to interpret WAV data?
- Prev by Date: Re: Filter processing speed
- Next by Date: Re: How to interpret WAV data?
- Previous by thread: SetCurrentPosition Problems
- Next by thread: Re: How to interpret WAV data?
- Index(es):
Loading