aboutsummaryrefslogtreecommitdiff
path: root/include/adlmidi.h
diff options
context:
space:
mode:
authorWohlstand <admin@wohlnet.ru>2017-11-10 01:44:31 +0300
committerWohlstand <admin@wohlnet.ru>2017-11-10 01:44:31 +0300
commit48188458bcc624b13f9c242c0fddfba29a91286d (patch)
tree5eb6f6cefcbff3f05e7e542be98dc47ca5babd62 /include/adlmidi.h
parent0be25a41ca793c3c03814f529890492adfac8ad5 (diff)
downloadlibADLMIDI-48188458bcc624b13f9c242c0fddfba29a91286d.tar.gz
libADLMIDI-48188458bcc624b13f9c242c0fddfba29a91286d.tar.bz2
libADLMIDI-48188458bcc624b13f9c242c0fddfba29a91286d.zip
Added adl_atEnd() function
It is needed to detect the end of song while manually iterating a MIDI ticks
Diffstat (limited to 'include/adlmidi.h')
-rw-r--r--include/adlmidi.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/include/adlmidi.h b/include/adlmidi.h
index 6a5a21a..8c5b7f4 100644
--- a/include/adlmidi.h
+++ b/include/adlmidi.h
@@ -212,6 +212,9 @@ extern int adl_generate(ADL_MIDIPlayer *device, int sampleCount, short *out);
*/
extern double adl_tickEvents(ADL_MIDIPlayer *device, double seconds, double granuality);
+/*Returns 1 if music position has reached end*/
+extern int adl_atEnd(ADL_MIDIPlayer *device);
+
/**Hooks**/
typedef void (*ADL_RawEventHook)(void *userdata, ADL_UInt8 type, ADL_UInt8 subtype, ADL_UInt8 channel, const ADL_UInt8 *data, size_t len);