aboutsummaryrefslogtreecommitdiff
path: root/src/adlmidi.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/adlmidi.cpp')
-rw-r--r--src/adlmidi.cpp15
1 files changed, 15 insertions, 0 deletions
diff --git a/src/adlmidi.cpp b/src/adlmidi.cpp
index c62c2cb..621c385 100644
--- a/src/adlmidi.cpp
+++ b/src/adlmidi.cpp
@@ -574,6 +574,21 @@ ADLMIDI_EXPORT void adl_setLoopEnabled(ADL_MIDIPlayer *device, int loopEn)
#endif
}
+ADLMIDI_EXPORT void adl_setLoopCount(ADL_MIDIPlayer *device, int loopCount)
+{
+#ifndef ADLMIDI_DISABLE_MIDI_SEQUENCER
+ if(!device)
+ return;
+ MidiPlayer *play = GET_MIDI_PLAYER(device);
+ assert(play);
+ play->m_sequencer->setLoopsCount(loopCount);
+#else
+ ADL_UNUSED(device);
+ ADL_UNUSED(loopCount);
+#endif
+}
+
+
ADLMIDI_EXPORT void adl_setSoftPanEnabled(ADL_MIDIPlayer *device, int softPanEn)
{
if(!device)