Joe Drew wrote:
Right now I'm keeping a frame index, which is constantly updated, because that's all I need (mpg123 seeks only by frames, so mpg321 will do the same.) The problem isn't really that I need to be able to create a frame listing: I have at least a reasonably accurate one. I need to be able to tell madlib to use the new buffer (i.e., the new starting point) in the middle of decoding, instead of re-starting the decoding process, and I can't figure out any way to do so.
That is a fairly popular question. See:
http://www.mars.org/mailman/public/mad-dev/2001-August/000321.html
The real issue is keeping accumulated time stamps associated with your frame lists so you can accurately rewind the playing time as well in constant time.
-john