From ed07b26d76f62ccb5d0c9b896f0be290d6e84683 Mon Sep 17 00:00:00 2001 From: Ben Loftis Date: Sat, 26 Feb 2022 08:47:59 -0600 Subject: [PATCH] auditioner: do not reset my patches when changing files * if a file has program-changes, then it will set() my patches * if a file does *not* have PCs, the user might choose one (which sets() it) * if the next file does *not* have PCs, we should preserve the user's selection * if the next file has PCs, it will set() it (losing the user selection) --- libs/ardour/auditioner.cc | 4 ---- 1 file changed, 4 deletions(-) diff --git a/libs/ardour/auditioner.cc b/libs/ardour/auditioner.cc index 6b4973bdb7..98073704c0 100644 --- a/libs/ardour/auditioner.cc +++ b/libs/ardour/auditioner.cc @@ -372,10 +372,6 @@ Auditioner::audition_region (boost::shared_ptr region, bool loop) Glib::Threads::Mutex::Lock lm (lock); - for (uint8_t c = 0; c < 16; ++c) { - _patch_change[c].unset (); - } - if (boost::dynamic_pointer_cast(region) != 0) { _midi_audition = false;