Consistent AU factory Preset IDs
authorRobin Gareus <robin@gareus.org>
Mon, 3 Dec 2018 19:45:06 +0000 (20:45 +0100)
committerRobin Gareus <robin@gareus.org>
Mon, 3 Dec 2018 19:45:06 +0000 (20:45 +0100)
commitb285559767e21aae4467270590f048c3263fd742
treefec5d5dd989f50738e23c9c02f2f0a5a5e12c47a
parent6877ac820b149fab1cae75633a5efd6dab5adb47
Consistent AU factory Preset IDs

Use AU's preset->presetNumber as identifier since std::map are sorted
this also indirectly sorts presets by preset-number. (user presets
start with a '/' and are listed first, sorted by name).

Since Presets are now identified by URI on session load (53a0199a0)
and AU user-presets can added/be removed (since ae4604a24b7), simple
sequential numbering is no longer an option.
libs/ardour/audio_unit.cc