[mad-dev] Initite loop bug in libid3tag-0.15.0b
john cooper
john.cooper at third-harmonic.com
Wed Jan 30 04:18:22 PST 2008
Rahul Banerjee wrote:
> Hi,
>
> I am new to the usage of this mad library. I have a question regarding
> this. Is the fast forward playback of mp3 is supported with this library?
Well yes, sort of. libmad will simply decode a stream.
The burden is placed on the user however to direct the
decoder to whatever bits you'd like to decode. So to
implement fast fwd, trick play, etc.. you'll need to
point the decoder at the bits you'd like to render which
say constitute snippets of audio to be rendered from a
stream in fast forward.
This requires repositioning the stream pointer ahead in
the stream and rendering frames until you have an
error free decode and are synchronized. Render as much
of decoded output to the audio device for a single hop,
reposition the decoder in the stream and repeat.
-john
--
john.cooper at third-harmonic.com
More information about the mad-dev
mailing list