James:
You can break a WAV file down into 3 distinct chunks: Header, Format,
Data. Assuming the WAV is represented as a byte array, here's how that
breaks down:
HEADER Chunk:
---------------------------
Byte
0-3 "RIFF" (string, ASCII)
4-7 Total Length of WAV file (uint)
8-11 "WAVE" (string, ASCII)
FORMAT Chunk:
---------------------------
12-15 "fmt " (string, ASCII)
16-19 Length of FORMAT chunk (uint, always 0x10)
20-21 Always 0x01
22-23 Channel mode (0x01 Mono, 0x02 Stereo)
24-27 Sample rate (uint)
28-31 Bytes per second (uint)
32-33 Bytes per sample (1=8-bit Mono, 2=8-bit Stereo or 16-bit Mono,
4=16-bit Stereo
34-35 Bits per sample
DATA chunk:
---------------------------
36-39 "data" (string, ASCII)
40-43 Length of DATA chunk (uint)
44-END Data (binary)
"JamesT" <ji*********@ampekko.com> wrote in message
news:06****************************@phx.gbl...
Does anyone know how to get the information from a Wave
File Header in VB.NET (or VB6). I need to check the
sample rate for the correct value.
JamesT