diff options
author | Wohlstand <admin@wohlnet.ru> | 2017-10-18 03:03:49 +0300 |
---|---|---|
committer | Wohlstand <admin@wohlnet.ru> | 2017-10-18 03:03:49 +0300 |
commit | bb3fc091e0a5b9d1faa9198f3a72d1d332ddc85f (patch) | |
tree | f045915520ff7785a7f8c4f583de6a2a279e1a1d /src/adlmidi_midiplay.cpp | |
parent | 380d08e1a234efb17cf15a6b6c2d00c52e4fc648 (diff) | |
download | libADLMIDI-bb3fc091e0a5b9d1faa9198f3a72d1d332ddc85f.tar.gz libADLMIDI-bb3fc091e0a5b9d1faa9198f3a72d1d332ddc85f.tar.bz2 libADLMIDI-bb3fc091e0a5b9d1faa9198f3a72d1d332ddc85f.zip |
Wave recording in demo tool and disable loop by default
Diffstat (limited to 'src/adlmidi_midiplay.cpp')
-rw-r--r-- | src/adlmidi_midiplay.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/adlmidi_midiplay.cpp b/src/adlmidi_midiplay.cpp index 3b9d396..d473806 100644 --- a/src/adlmidi_midiplay.cpp +++ b/src/adlmidi_midiplay.cpp @@ -905,7 +905,7 @@ bool MIDIplay::ProcessEvents() //Loop if song end or loop end point has reached loopEnd = false; shortest = 0; - if(opl._parent->QuitWithoutLooping != 0) + if(opl._parent->loopingIsEnabled == 0) { atEnd = true; //Don't handle events anymore CurrentPosition.wait += 1.0;//One second delay until stop playing @@ -952,8 +952,8 @@ void MIDIplay::HandleEvent(size_t tk) if(evtype == 6) { - //Turn on/off Loop handling - if(opl._parent->QuitWithoutLooping == 0) + //Turn on/off Loop handling when loop is disabled + if(opl._parent->loopingIsEnabled != 0) { /* Move this away from events handler */ for(size_t i = 0; i < data.size(); i++) @@ -1058,7 +1058,7 @@ void MIDIplay::HandleEvent(size_t tk) uint8_t ctrlno = TrackData[tk][CurrentPosition.track[tk].ptr++]; uint8_t value = TrackData[tk][CurrentPosition.track[tk].ptr++]; - if((opl._parent->QuitWithoutLooping == 0) && (ctrlno == 111) && !invalidLoop) + if((opl._parent->loopingIsEnabled != 0) && (ctrlno == 111) && !invalidLoop) { loopStart = true; loopStart_passed = true; |