aboutsummaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorWohlstand <admin@wohlnet.ru>2021-10-25 05:38:25 +0300
committerWohlstand <admin@wohlnet.ru>2021-10-25 05:38:25 +0300
commit50a8396eb61c665b07426c70a11c0b73ed950434 (patch)
tree4abdfe53b1910b1c977d8ac5687454384dd83803 /include
parent57a8d528e877d3810deaa1ce24545512e1a46ac9 (diff)
downloadlibADLMIDI-50a8396eb61c665b07426c70a11c0b73ed950434.tar.gz
libADLMIDI-50a8396eb61c665b07426c70a11c0b73ed950434.tar.bz2
libADLMIDI-50a8396eb61c665b07426c70a11c0b73ed950434.zip
Added an ability to set number of loops
Diffstat (limited to 'include')
-rw-r--r--include/adlmidi.h10
1 files changed, 10 insertions, 0 deletions
diff --git a/include/adlmidi.h b/include/adlmidi.h
index 2b68509..53f57f8 100644
--- a/include/adlmidi.h
+++ b/include/adlmidi.h
@@ -564,6 +564,16 @@ extern ADLMIDI_DECLSPEC void adl_setAutoArpeggio(struct ADL_MIDIPlayer *device,
extern ADLMIDI_DECLSPEC void adl_setLoopEnabled(struct ADL_MIDIPlayer *device, int loopEn);
/**
+ * @brief Set how many times loop will be played
+ *
+ * Note: The song will be played once if loop has been disabled with no matter which value of loop count was set
+ *
+ * @param device Instance of the library
+ * @param loopCount Number of loops or -1 to loop infinitely
+ */
+extern ADLMIDI_DECLSPEC void adl_setLoopCount(struct ADL_MIDIPlayer *device, int loopCount);
+
+/**
* @brief Enable or disable soft panning with chip emulators
* @param device Instance of the library
* @param softPanEn 0 - disabled, 1 - enabled