aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorWohlstand <admin@wohlnet.ru>2016-08-05 16:39:49 +0300
committerWohlstand <admin@wohlnet.ru>2016-08-05 16:39:49 +0300
commit2452400e793d70f4d9d11867d20b87ab967a6916 (patch)
tree1de3c937f43a49c64908e509cc2c552a8627e8aa
parent06ebc12ecde2da914d0ef8314bab0a6c0f492987 (diff)
downloadlibADLMIDI-2452400e793d70f4d9d11867d20b87ab967a6916.tar.gz
libADLMIDI-2452400e793d70f4d9d11867d20b87ab967a6916.tar.bz2
libADLMIDI-2452400e793d70f4d9d11867d20b87ab967a6916.zip
Handle 111'th controller as loopStart point
-rw-r--r--src/adlmidi.cpp6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/adlmidi.cpp b/src/adlmidi.cpp
index ef9ac8a..7eca21c 100644
--- a/src/adlmidi.cpp
+++ b/src/adlmidi.cpp
@@ -1409,6 +1409,12 @@ private:
case 113: break; // Related to pitch-bender, used by missimp.mid in Duke3D
case 6: SetRPN(MidCh, value, true); break;
case 38: SetRPN(MidCh, value, false); break;
+ case 111://LoopStart unofficial controller
+ if(!invalidLoop)
+ {
+ loopStart = true;
+ loopStart_passed=true;
+ } break;
default: break;
//UI.PrintLn("Ctrl %d <- %d (ch %u)", ctrlno, value, MidCh);
}