mirror of
https://github.com/robbert-vdh/yabridge.git
synced 2026-05-07 20:10:13 +02:00
Further reduce allocations by reusing responses
On the plugin's side, still need to do a lot of work on the Wine side of things.
This commit is contained in:
@@ -220,12 +220,15 @@ Vst3PluginProxyImpl::process(Steinberg::Vst::ProcessData& data) {
|
||||
process_request.data.repopulate(data);
|
||||
process_request.new_realtime_priority = new_realtime_priority;
|
||||
|
||||
ProcessResponse response = bridge.send_audio_processor_message(
|
||||
MessageReference<YaAudioProcessor::Process>(process_request));
|
||||
// We'll also receive the response into an existing object so we can also
|
||||
// avoid heap allocations there
|
||||
bridge.receive_audio_processor_message_into(
|
||||
MessageReference<YaAudioProcessor::Process>(process_request),
|
||||
process_response);
|
||||
|
||||
response.output_data.write_back_outputs(data);
|
||||
process_response.output_data.write_back_outputs(data);
|
||||
|
||||
return response.result;
|
||||
return process_response.result;
|
||||
}
|
||||
|
||||
uint32 PLUGIN_API Vst3PluginProxyImpl::getTailSamples() {
|
||||
|
||||
Reference in New Issue
Block a user