-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1
[To: mad-dev@lists.mars.org]
I'm trying to implement better seeking in my application.
First, easy question: I believe after calling mad_decode_header, the amount of (decoded) data in the next frame is:
64*MAD_NSBSAMPLES(&(sync.frame.header))*MAD_NCHANNELS(&(sync.frame.header))
Next question:
after calling mad_decode_header, am I allowed to call mad_decode_frame to actually decode the frame? The idea being to seek to where I want be by calling decode_header a bunch of time till I get to where I want to be.
I think decode_frame returns -1 after I call decode_header. I'm not sure if this the the behaviour to expect, or if I'm doing something wrong.
- -- Russell O'Connor roconnor@math.berkeley.edu http://www.math.berkeley.edu/~roconnor/ ``Later generations will regard set theory as a disease from which one has recovered.'' -- Poincare