aboutsummaryrefslogtreecommitdiff
path: root/audio/softsynth/mt32/Poly.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'audio/softsynth/mt32/Poly.cpp')
-rw-r--r--audio/softsynth/mt32/Poly.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/audio/softsynth/mt32/Poly.cpp b/audio/softsynth/mt32/Poly.cpp
index a2f00db73c..c45391f672 100644
--- a/audio/softsynth/mt32/Poly.cpp
+++ b/audio/softsynth/mt32/Poly.cpp
@@ -58,6 +58,9 @@ bool Poly::noteOff(bool pedalHeld) {
return false;
}
if (pedalHeld) {
+ if (state == POLY_Held) {
+ return false;
+ }
state = POLY_Held;
} else {
startDecay();