diff options
Diffstat (limited to 'src/adlmidi.cpp')
-rw-r--r-- | src/adlmidi.cpp | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/src/adlmidi.cpp b/src/adlmidi.cpp index 21cfbc9..54d839b 100644 --- a/src/adlmidi.cpp +++ b/src/adlmidi.cpp @@ -560,6 +560,15 @@ ADLMIDI_EXPORT void adl_setAutoArpeggio(ADL_MIDIPlayer *device, int aaEn) play->m_setup.enableAutoArpeggio = (aaEn != 0); } +ADLMIDI_EXPORT int adl_getAutoArpeggio(ADL_MIDIPlayer *device) +{ + if(!device) + return 0; + MidiPlayer *play = GET_MIDI_PLAYER(device); + assert(play); + return play->m_setup.enableAutoArpeggio ? 1 : 0; +} + ADLMIDI_EXPORT void adl_setLoopEnabled(ADL_MIDIPlayer *device, int loopEn) { #ifndef ADLMIDI_DISABLE_MIDI_SEQUENCER |