diff options
author | Wohlstand <admin@wohlnet.ru> | 2022-10-17 18:39:08 +0300 |
---|---|---|
committer | Wohlstand <admin@wohlnet.ru> | 2022-10-17 18:39:08 +0300 |
commit | 9fbaa58e87a63749ff1694bdb9f4d1241db98689 (patch) | |
tree | e876a7ea5bed72a36836137f8915eed1fe84edd2 /src/adlmidi_sequencer.cpp | |
parent | e27764edeb24936ce50da6229a781006e7ebdc75 (diff) | |
download | libADLMIDI-9fbaa58e87a63749ff1694bdb9f4d1241db98689.tar.gz libADLMIDI-9fbaa58e87a63749ff1694bdb9f4d1241db98689.tar.bz2 libADLMIDI-9fbaa58e87a63749ff1694bdb9f4d1241db98689.zip |
Improved the multi-song XMI support
- Allow selecting every individual song of the XMI file
- Allow dynamic song switch without re-opening of a file
- Fixed XMI2MID converter with adding an ability to export every individual song
- Added hooks for loop start and end events
- Added an option to immediately stop the song processing on loop end reaching (needed to perform dynamic song switch at the loop end point)
Diffstat (limited to 'src/adlmidi_sequencer.cpp')
-rw-r--r-- | src/adlmidi_sequencer.cpp | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/adlmidi_sequencer.cpp b/src/adlmidi_sequencer.cpp index ce68ca8..53338e0 100644 --- a/src/adlmidi_sequencer.cpp +++ b/src/adlmidi_sequencer.cpp @@ -141,6 +141,11 @@ void MIDIplay::initSequencerInterface() seq->onSongStart = rtSongBegin; seq->onSongStart_userData = this; + + seq->onloopStart = hooks.onLoopStart; + seq->onloopStart_userData = hooks.onLoopStart_userData; + seq->onloopEnd = hooks.onLoopEnd; + seq->onloopEnd_userData = hooks.onLoopEnd_userData; /* NonStandard calls End */ m_sequencer->setInterface(seq); |