Rockbox Development > Starting Development and Compiling

Implementation of clipped MP3 (begin/end) for playback of DAISY Books

<< < (2/2)

daniel.weck:

--- Quote from: daniel.weck on September 10, 2007, 03:53:14 PM ---I'll now have a look at cuesheets. thx.

--- End quote ---

Ok, I found something:

plugin.c
    void (*audio_ff_rewind)(long newtime);

This seeks the currently loaded audio file to a given time position in milliseconds.

Now, to detect when the desired end time is reached, I can check the "elapsed" field of the "mp3entry" structure (for the currently playing audio file, given by audio_current_track()). I can do that in a while loop in the plugin thread (the audio thread is totally separate).

slipedit.c contains some good example code for that.

I now need to find out how to play an MP3 file from a plugin :)
Making progress...

saratoga:
Check the codec_test plugin.

Navigation

[0] Message Index

[*] Previous page

Go to full version