diff options
Diffstat (limited to 'include/adlmidi.h')
-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 */ |