aboutsummaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorWohlstand <admin@wohlnet.ru>2017-10-24 23:01:01 +0300
committerWohlstand <admin@wohlnet.ru>2017-10-24 23:01:01 +0300
commit6783770a8533dd099b39c51a5c3f7f5f4000b4bc (patch)
tree5532ae111fe681d4d410f4f3caa71500dea3b1b4 /include
parent306ecba785a64fa111c1198b9b986ac3e98db619 (diff)
downloadlibADLMIDI-6783770a8533dd099b39c51a5c3f7f5f4000b4bc.tar.gz
libADLMIDI-6783770a8533dd099b39c51a5c3f7f5f4000b4bc.tar.bz2
libADLMIDI-6783770a8533dd099b39c51a5c3f7f5f4000b4bc.zip
Added working seekability!
Testing and stabilizing is needed
Diffstat (limited to 'include')
-rw-r--r--include/adlmidi.h11
1 files changed, 10 insertions, 1 deletions
diff --git a/include/adlmidi.h b/include/adlmidi.h
index 145b5dd..e2aaf59 100644
--- a/include/adlmidi.h
+++ b/include/adlmidi.h
@@ -127,6 +127,15 @@ extern int adl_openData(struct ADL_MIDIPlayer *device, void *mem, long size);
/*Resets MIDI player*/
extern void adl_reset(struct ADL_MIDIPlayer *device);
+/*Get total time length of current song*/
+extern double adl_totalTimeLength(struct ADL_MIDIPlayer *device);
+
+/*Get current time position in seconds*/
+extern double adl_positionTell(struct ADL_MIDIPlayer *device);
+
+/*Jump to absolute time position in seconds*/
+extern void adl_positionSeek(struct ADL_MIDIPlayer *device, double seconds);
+
/*Reset MIDI track position to begin */
extern void adl_positionRewind(struct ADL_MIDIPlayer *device);
@@ -134,7 +143,7 @@ extern void adl_positionRewind(struct ADL_MIDIPlayer *device);
extern void adl_close(struct ADL_MIDIPlayer *device);
/*Take a sample buffer*/
-extern int adl_play(struct ADL_MIDIPlayer *device, int sampleCount, short out[]);
+extern int adl_play(struct ADL_MIDIPlayer *device, int sampleCount, short out[]);
#ifdef __cplusplus
}