Hi all, I'm trying to use libmad under WindowsCE in an ARM system (pocket PC). I've modified minimad.c so it open a file .mp3 and try to write the PCM samples in an output file. I've experienced an error when minimad read the header of the input file, but I've ingored it as Rob Leslie said in an older mail. Now the program don't give me any error, but it writes void PCM samples in the output file. Does someone know what does it mean? Note that the problem is not writing the samples to the output file: the function of libmad that decompress the .mp3 returns all 0 PCM samples!!!
Another problem: I would like to write a .wav file, so I need to get various information about the file .mp3 that minimad is reading. For example, I need to know the sample frequency; in the comments of minimad.c there's written:
"header->sfreq contains the sample frequency of the input file"
So I've used this variable and I've discovered that header->sfreq conteined 0! Is this thing correlated with the former I've written of?