Hi everybody, I'm Simone from Genoa (Italy).
From some time I'm using the library mad.h (I compiled the WinCe version); to understand how to use mad.h I downloaded the program "minimad.c" and got the decoding from mp3 to PCM samples.
Now I would like to hear this samples using WinCE, but I don't know how... Can You help me? I thank you all for your attention.
On Friday, April 26, 2002, at 07:27 AM, naso wrote:
From some time I'm using the library mad.h (I compiled the WinCe version) ; to understand how to use mad.h I downloaded the program "minimad.c" and got the decoding from mp3 to PCM samples. Now I would like to hear this samples using WinCE, but I don't know how... Can You help me?
Hi Simone,
It's probably easier to play the samples under Windows if you put them into a WAVE container. You could probably modify minimad.c to write a WAVE header before it outputs the first sample. See audio_wave.c for an example; you need to write a RIFF header, format chunk, and a data chunk header.
-- Rob Leslie rob@mars.org