13
0

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)
This commit is contained in:
Ben Loftis 2022-02-26 08:47:59 -06:00
parent 849526b7e7
commit ed07b26d76

View File

@ -372,10 +372,6 @@ Auditioner::audition_region (boost::shared_ptr<Region> 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<AudioRegion>(region) != 0) {
_midi_audition = false;