Ive been having a bit of trouble trying to use mad in the normal manner I usually decode mpeg, because mad has introduced this stream api which I am finding getting in the way somewhat as it seems to dig into the lower levels of logic such as frame.c I usually do decoding 1 frame at a time in this manner:
Read 4 byte header Decode header Read single mpeg frame - size based on previous header. Decode single frame (then synth etc) to 1152 samples. Repeat
My own (fpu) decoder and intel's IPP for arm decoder allows this, but mad seems to want the 'next' frame with the stream stuff, which can mess up my logic a bit when I don't want to or cant give it another frame. Is it simple enough to do the above method with mad?
Thanks, Brett