Hi everybody,
I've some problem because minimad read on the
standard input the mp3 file and send the decoded PCM samples to the
standard output, but I'm using WinCE, so I have to use an input file and an
output file different from the standards. For the input I've done
so:
int main()
{
struct stat
stat;
FILE *test;
int file_des;
fstat(file_des,
&stat);
/* 1. map input stream into memory
*/
decode(test, stat.st_size);
}
and I hope it goes well, but I tried to modify the
output function discovering that it apparently never executes!!!
I would like to send the PCM samples to a wave file
(I already know how to write the chunks...) and play this .wav, but I don't
understand how to catch this damned samples, help me, please!!!
---
Simone