I'm having trouble creating the equivalent of minimad.c, except without loading the whole file into memory. In fact, now that I have added in the error callback I seem to be having trouble doing anything at all.
Without the callback the pcm outputed has errors at the end of each BUF_SIZE chunck read in from the file. With the callback function (taken almost literally from minimad.c) the program ends on a sync. error (101) within the first frame.
I've been double checking and trying slightly different versions of the same thing -- but I can't make any progress. I've attached the program, any pointers?
Thanks verily, Adam Luter