Only parse additional Session midnam files on Session load
authorTim Mayberry <mojofunk@gmail.com>
Mon, 19 Oct 2015 10:23:33 +0000 (20:23 +1000)
committerPaul Davis <paul@linuxaudiosystems.com>
Thu, 22 Oct 2015 15:51:03 +0000 (11:51 -0400)
commite93ba5330903ad3ff03da4abe88a0a09ec408df7
tree630186b1dc4c78122ae701b6d13336a678e24785
parentefc26a049063ec9b7f81ab89fbe9b8fdcfd18233
Only parse additional Session midnam files on Session load

When loading a Session add the Session patchfiles directory to the
MidiPatchManager search path and only process/parse the files for that
directory rather than refreshing/reparsing all the files. Similarly for unload,
just unload the devices that are from the Session specific midnam files instead
of removing the path and refreshing/reparsing all the files.

This will not remove the "system" midnam files as they are always added first
and duplicates from the session patchfiles directory are ignored.
libs/ardour/ardour/midi_patch_manager.h
libs/ardour/midi_patch_manager.cc