mirror of
https://github.com/robbert-vdh/yabridge.git
synced 2026-05-07 20:10:13 +02:00
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:
@@ -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();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user