I'm trying to write some mp3 playing software (www.reza.net/rio/rrr.html) for the rio receiver using the mad libraries. I've followed the example from minimad, and I've been able to make some progress, but there are some issues I'm having. First though, the system specs :
Linux version 2.2.14-rmk4-mercury17-v1.01 (root@sticky.mock.com) (gcc version 2.95.2 19991024 (release)) #15 Sun Feb 25 19:24:49 PST 2001 Processor : ARM/VLSI arm720 rev 2
I've compiled the libs using these options :
./configure --enable-fpm=arm --host=armv4l
Now, when I to decode it, the following things happen :
- input callback called - error callback called (MAD_ERROR_LOSTSYNC at frame 0) * i ignore this and keep processing * This error also occurs with minimad playing - output callback is called multiple times * I get some audio out, music + loud clicks, till it runs out of data to decode - input callback is called - error callback called (MAD_ERROR_LOSTSYNC) - error callback called * the error code varies here, so far I've seen either MAD_ERROR_BADSAMPLERATE or MAD_ERROR_BADDATAPTR - i stop decoding at this point.
now, as I'm also getting the MAD_ERROR_LOSTSYNC with minimad, I'm guessing (hoping) that I'm feeding some incorrect compile option to the madlibs. Any thoughts would be greatly appreciated.
Reza