Sort VST factory presets
authorRobin Gareus <robin@gareus.org>
Mon, 22 Oct 2018 13:43:46 +0000 (15:43 +0200)
committerRobin Gareus <robin@gareus.org>
Mon, 22 Oct 2018 13:46:59 +0000 (15:46 +0200)
commit4e1464e70fc73b4b962c0cad02e301832b9901f6
tree36414b914bf33cfd7742e6b6faacff2cb9447103
parent947f6c78b2780a5b41e67d29472cde45c7eabdea
Sort VST factory presets

This is more of a workaround than a fix. Simply by forcing the
URI to be sortable (VST-user presets are sorted at the end).

This eventually needs a deeper cleanup and API consolidation

PluginInfo::get_presets(bool) returns an ordered std::vector.
However this API is only used in a few cases where the plugin is
not instantiated. PluginInfo::get_presets(bool).

The problem is Plugin::get_presets(). The method returns
information that was previously cached by Plugin::find_presets() in
std::map<URI, ...>
libs/ardour/lxvst_plugin.cc
libs/ardour/mac_vst_plugin.cc
libs/ardour/vst_plugin.cc