Implement IComponent::getState()

With this the basic IComponent interface is fully implemented. Next will
be `IAudioProcessor` and `IConnectionPoint` as additions to IComponent.
We'll use the same `known_iids` mechanism as used in the plugin factory.
This commit is contained in:
Robbert van der Helm
2020-12-14 12:33:35 +01:00
parent 02e6fb1ba8
commit e653142e45
9 changed files with 75 additions and 8 deletions
+6 -3
View File
@@ -148,7 +148,10 @@ tresult PLUGIN_API YaComponentPluginImpl::setState(Steinberg::IBStream* state) {
}
tresult PLUGIN_API YaComponentPluginImpl::getState(Steinberg::IBStream* state) {
// TODO: Implement
bridge.logger.log("TODO: IComponent::getState()");
return Steinberg::kNotImplemented;
const GetStateResponse response = bridge.send_message(
YaComponent::GetState{.instance_id = arguments.instance_id});
assert(response.updated_state.write_back(state) == Steinberg::kResultOk);
return response.result.native();
}