aboutsummaryrefslogtreecommitdiff
path: root/src/midi_sequencer.hpp
diff options
context:
space:
mode:
authorWohlstand <admin@wohlnet.ru>2022-10-25 04:57:31 +0300
committerWohlstand <admin@wohlnet.ru>2022-10-25 04:57:31 +0300
commit24855412cd0a5e2dcf4ac8b62888d115cd20b3f0 (patch)
tree89111344f451ab6a94f8340abee10a9c605dcd5d /src/midi_sequencer.hpp
parentd08222efbc76aa734b35bbbe7482f60a5e35a28c (diff)
downloadlibADLMIDI-24855412cd0a5e2dcf4ac8b62888d115cd20b3f0.tar.gz
libADLMIDI-24855412cd0a5e2dcf4ac8b62888d115cd20b3f0.tar.bz2
libADLMIDI-24855412cd0a5e2dcf4ac8b62888d115cd20b3f0.zip
XMI2MIDI: Optimised the algorithm for multiple songs
Diffstat (limited to 'src/midi_sequencer.hpp')
-rw-r--r--src/midi_sequencer.hpp12
1 files changed, 9 insertions, 3 deletions
diff --git a/src/midi_sequencer.hpp b/src/midi_sequencer.hpp
index 2cba080..5e7ecc7 100644
--- a/src/midi_sequencer.hpp
+++ b/src/midi_sequencer.hpp
@@ -618,10 +618,16 @@ public:
void setSoloTrack(size_t track);
/**
- * @brief Set the track number of a multi-track file (such as XMI)
- * @param trackNumber Identifier of the track to load (or -1 to mix all tracks as one song)
+ * @brief Set the song number of a multi-song file (such as XMI)
+ * @param trackNumber Identifier of the song to load (or -1 to mix all songs as one song)
*/
- void setLoadTrack(int track);
+ void setSongNum(int track);
+
+ /**
+ * @brief Retrive the number of songs in a currently opened file
+ * @return Number of songs in the file. If 1 or less, means, the file has only one song inside.
+ */
+ int getSongsCount();
/**
* @brief Defines a handler for callback trigger events