Implement IAudioProcessor::process()

With this the entire `IAudioProcessor` interface has been implemented
and in theory it should now be possible to process audio and events.
Logging for these requests still has to be implemented separately.
This commit is contained in:
Robbert van der Helm
2020-12-16 18:38:17 +01:00
parent 6d0a38f720
commit 1dd575e4a7
8 changed files with 87 additions and 13 deletions
+6 -3
View File
@@ -200,9 +200,12 @@ tresult PLUGIN_API YaComponentPluginImpl::setProcessing(TBool state) {
tresult PLUGIN_API
YaComponentPluginImpl::process(Steinberg::Vst::ProcessData& data) {
// TODO: Implement
bridge.logger.log("TODO: IAudioProcessor::process()");
return Steinberg::kNotImplemented;
ProcessResponse response = bridge.send_message(YaComponent::Process{
.instance_id = arguments.instance_id, .data = data});
response.output_data.write_back_outputs(data);
return response.result;
}
uint32 PLUGIN_API YaComponentPluginImpl::getTailSamples() {