mirror of
https://github.com/robbert-vdh/yabridge.git
synced 2026-05-14 20:40:03 +02:00
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:
@@ -205,6 +205,16 @@ void Vst3Bridge::run() {
|
||||
return component_instances[request.instance_id]
|
||||
.audio_processor->setProcessing(request.state);
|
||||
},
|
||||
[&](YaComponent::Process& request)
|
||||
-> YaComponent::Process::Response {
|
||||
const tresult result =
|
||||
component_instances[request.instance_id]
|
||||
.audio_processor->process(request.data.get());
|
||||
|
||||
return YaComponent::ProcessResponse{
|
||||
.result = result,
|
||||
.output_data = request.data.move_outputs_to_response()};
|
||||
},
|
||||
[&](const YaComponent::GetTailSamples& request)
|
||||
-> YaComponent::GetTailSamples::Response {
|
||||
return component_instances[request.instance_id]
|
||||
|
||||
Reference in New Issue
Block a user