slackbuilds_ponce/audio/guitarix/patches/0001-fix-Issue-switching-presets-with-midi-messages-repor.patch
2015-11-14 07:07:23 +07:00

35 lines
1.2 KiB
Diff

From c929d5872b81214e7aef3fc82bc178b427dc30f8 Mon Sep 17 00:00:00 2001
From: Hermann Meyer <brummer-@web.de>
Date: Mon, 9 Nov 2015 06:57:27 +0100
Subject: [PATCH 1/3] * fix Issue switching presets with midi messages
reported by eduardomezencio
---
trunk/src/gx_head/engine/gx_paramtable.cpp | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/trunk/src/gx_head/engine/gx_paramtable.cpp b/trunk/src/gx_head/engine/gx_paramtable.cpp
index b82fe93..4ef2851 100644
--- a/trunk/src/gx_head/engine/gx_paramtable.cpp
+++ b/trunk/src/gx_head/engine/gx_paramtable.cpp
@@ -505,7 +505,7 @@ void MidiControllerList::on_pgm_chg() {
do {
pgm = gx_system::atomic_get(program_change);
} while (!gx_system::atomic_compare_and_exchange(&program_change, pgm, -1));
- new_program(pgm);
+ if (pgm>=0) new_program(pgm);
}
void MidiControllerList::on_mute_chg() {
@@ -521,7 +521,7 @@ void MidiControllerList::on_bank_chg() {
do {
bk = gx_system::atomic_get(bank_change);
} while (!gx_system::atomic_compare_and_exchange(&bank_change, bk, -1));
- new_bank(bk);
+ if (bk>=0) new_bank(bk);
}
void MidiControllerList::set_config_mode(bool mode, int ctl) {
--
1.8.4