forked from len0rd/rockbox
MIDI: Allow seeking forward and backward using the left/right keys. Currently seeks in 5 second
increments, but this can be set to any amount. Also implemented a counter for playing time, which can pretty easily be used to determine the length of the file, in seconds, before playing it. The time isn't displayed anywhere right now, but all this can be useful if this thing is turned into a codec, or at least gets a nice UI. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@15418 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
parent
dc58c3d92e
commit
cd963d84ca
5 changed files with 110 additions and 8 deletions
|
|
@ -20,6 +20,8 @@ int initSynth(struct MIDIfile * mf, char * filename, char * drumConfig);
|
|||
void setPoint(struct SynthObject * so, int pt);
|
||||
void synthSamples(int32_t *buf_ptr, unsigned int num_samples);
|
||||
|
||||
void resetControllers();
|
||||
|
||||
static inline struct Event * getEvent(struct Track * tr, int evNum)
|
||||
{
|
||||
return tr->dataBlock + (evNum*sizeof(struct Event));
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue