Implement IEditController::getParameterCount()

This commit is contained in:
Robbert van der Helm
2020-12-17 21:54:27 +01:00
parent 7eb7e87953
commit 4cc24f74d1
6 changed files with 34 additions and 3 deletions
@@ -108,6 +108,21 @@ class YaEditController2 : public Steinberg::Vst::IEditController,
virtual tresult PLUGIN_API
getState(Steinberg::IBStream* state) override = 0;
/**
* Message to pass through a call to `IEditController::getParameterCount()`
* to the Wine plugin host.
*/
struct GetParameterCount {
using Response = PrimitiveWrapper<int32>;
native_size_t instance_id;
template <typename S>
void serialize(S& s) {
s.value8b(instance_id);
}
};
virtual int32 PLUGIN_API getParameterCount() override = 0;
virtual tresult PLUGIN_API
getParameterInfo(int32 paramIndex,