diff options
author | Wohlstand <admin@wohlnet.ru> | 2022-10-25 04:57:31 +0300 |
---|---|---|
committer | Wohlstand <admin@wohlnet.ru> | 2022-10-25 04:57:31 +0300 |
commit | 24855412cd0a5e2dcf4ac8b62888d115cd20b3f0 (patch) | |
tree | 89111344f451ab6a94f8340abee10a9c605dcd5d /include | |
parent | d08222efbc76aa734b35bbbe7482f60a5e35a28c (diff) | |
download | libADLMIDI-24855412cd0a5e2dcf4ac8b62888d115cd20b3f0.tar.gz libADLMIDI-24855412cd0a5e2dcf4ac8b62888d115cd20b3f0.tar.bz2 libADLMIDI-24855412cd0a5e2dcf4ac8b62888d115cd20b3f0.zip |
XMI2MIDI: Optimised the algorithm for multiple songs
Diffstat (limited to 'include')
-rw-r--r-- | include/adlmidi.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/include/adlmidi.h b/include/adlmidi.h index 0611da6..6afcefc 100644 --- a/include/adlmidi.h +++ b/include/adlmidi.h @@ -846,6 +846,13 @@ extern ADLMIDI_DECLSPEC int adl_openData(struct ADL_MIDIPlayer *device, const vo extern ADLMIDI_DECLSPEC void adl_selectSongNum(struct ADL_MIDIPlayer *device, int songNumber); /** + * @brief Retrive the number of songs in a currently opened file + * @param device Instance of the library + * @return Number of songs in the file. If 1 or less, means, the file has only one song inside. + */ +extern ADLMIDI_DECLSPEC int adl_getSongsCount(struct ADL_MIDIPlayer *device); + +/** * @brief Resets MIDI player (per-channel setup) into initial state * @param device Instance of the library */ |