naso wrote:
Hi everybody, I'm Simone from Genoa.
I'm using minimad for WinCE, so I had to modify it in some part. Now I believe I've done a good job, because the function "decode" does something... it calls "input" then calls "error". The message I get from "error" is the sequent:
"decoding error 0x0101 at byte offset 0"
Does someone know what does it means (I've understood only that the error happens at the beginning of the file ".mp3", but the code 0x0101 doesn't tell me nothing...)?
Thank you all.
Simone
In file mad.h you have all the error codes:
MAD_ERROR_LOSTSYNC = 0x0101, /* lost synchronization */
I'm quite new to MAD too but I've experienced this one already. You get this error when your input function places other than MPEG Audio frames in the MAD input buffer. I experienced this with some files that had some ID tags in the beginning of the file. I had to find the first frame (frame synchronization) and place *that* in the MAD input buffer. In other words, try to skip the something in the beginning of your file and make sure you always give MAD MPEG Audio frames only.
Someone correct me if I'm wrong.