Re: WAV File Header Format.
- From: "Anonymous" <someone@xxxxxxxxxxxxx>
- Date: Mon, 27 Feb 2006 13:15:53 GMT
Try searching for waveformatex at www.msdn.com.
My guess is you're setting the wrong sample rate/bit width combination such
that your sound card thinks it's not supported.
-clark
<amitsheth@xxxxxxxxx> wrote in message
news:1141025537.332430.55310@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
Hi,
I am trying to append a standard WAV file header (which I believe is
exactly 44 bytes long) to a RAW audio file (sampled at 16 bits
resolution at a sampling rate of 8000 samples/second with little-endian
alignment).
I am using a utility called HexEdit to view the source RAW file as well
as the converted WAV file in binary (available at
http://www-physics.mps.ohio-state.edu/~prewett/hexedit). This utility
also allows one to directly edit the binary file.
The problem I am facing is that, after appending the pre-calculated WAV
header bytes to the start of the RAW file (through a program) as per
the standard 44 byte WAV protocol, the resultant WAV file is not
playing.
Using a utility called switch (available at
http://www.nch.com.au/switch), I am able to convert audio files from
WAV to RAW (as well as many other formats) and vice versa. This Switch
program is able to directly play the RAW file *as it is*.
Now, when the same source RAW file is converted to WAV through this
Switch program, it appends a 45 byte (*not* 44) header to the RAW file
and the then generated WAV file is playable on any audio player
supporting the WAV format (eg. Windows Media Player etc.)
Almost all the values in the auto-generated header (by Switch) are the
same as the one calculated by me as per the WAV header chart, except
for a few parameters, which I am not able to make sense of.
My question is, what is this 45 byte header and if someone could lead
me to the format for the same (which apparently appears to be a variant
of the standard WAV format) I'll be really thankful.
Thanks in advance,
Amit.
.
- References:
- WAV File Header Format.
- From: amitsheth
- WAV File Header Format.
- Prev by Date: Re: Output sample rate of AIC23 CODEC
- Next by Date: Re: $10 mic (was Re: Improving the SNR of a mic)
- Previous by thread: WAV File Header Format.
- Next by thread: Re: WAV File Header Format.
- Index(es):
Relevant Pages
|
Loading