Discussion:
[mad-user] MAD Output Format
mukesh harjai
2003-06-23 06:05:48 UTC
Permalink
Hi All,

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.

Please tell me,how this problem can be corrected.

Thanks in advance.

Regards,

Mukesh Harjai

_________________________________________________________________
Are you a geek? Are you a techno freak? http://www.msn.co.in/Computing/
Rob Leslie
2003-06-23 06:22:01 UTC
Permalink
Post by mukesh harjai
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
***@mars.org
Loading...