How do you handle
My original plan count all my presets and return that number. However:
Returns the number of preset programs the processor supports.
The value returned must be valid as soon as this object is created, and must not change over its lifetime.
This value shouldn’t be less than 1.
If my user creates a preset, then this number changes, which isn’t allowed. In VST3, if the new preset is selected, the VST3 wrapper immediately resets it back to a valid number in range.
So what are my options:
Always return 1. User must handle preset loading through the Plugin.
Return a fixed but very large number (num presets + 100) and assume the user will never create more than 100 presets any time they are using the plugin.