Re: WAV File Header Format.



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.



.



Relevant Pages

  • Re: Compact Flash card corruption
    ... the correct parameters to the raw file and save as ... wav or whatever format you need. ...
    (rec.audio.pro)
  • Re: Wavread a large file
    ... I have the wav format spec. ... > Ah Koh skrev: ... >> The problem is both method casues OUT OF MEMORY. ...
    (comp.soft-sys.matlab)
  • Re: Splitting up 6gb .wav
    ... of .wav files. ... and a fixed 56-bit header saying what's inside. ... start copying the number of samples desired and copying them to ... C'est suisse, et tres, tres precis." ...
    (rec.audio.pro)
  • Re: Problem with RIFF tags in audio ripped with WMP11 x64
    ... I am getting the same file header format errors here when I rip to wav using ... difference in the WMP11 RIFF tags here from the RIFF tag headers ripped using ... Non-WMP11 ripped WAV RIFF tag header: ...
    (microsoft.public.windowsmedia)
  • Re: fixing a wav file
    ... Using an mp3 player with voice recorder, I was reading a book, hit ... is no wav to display. ... Some software looks at the header for the length, ...
    (rec.audio.pro)

Loading