Re: MAD Output Format
Rob Leslie <[email protected]> Sun, 22 Jun 2003 23:22:01 -0700
| Newsgroups | gmane.comp.audio.mad.user |
|---|---|
| Message-ID | <[email protected]> |
On Sunday, June 22, 2003, at 11:05 PM, mukesh harjai wrote: > I have followed madlld application for Implementing MAD Decoder. > MAD Creates Output wav file of desired size, but when i tried to play > it using Windows Media Player or Winamp, it does not recognize the wav > format. I think madlld simply writes raw PCM samples; in order for Windows programs to recognize the audio data, you will need to add a RIFF/WAVE header. See audio_wave.c in the madplay distribution for an example of this. Beware also that madlld writes samples in big-endian format; you'll need to write little-endian samples to WAVE files. -- Rob Leslie [email protected]