Avoid allocations in VST3 process response

This is very ugly so hopefully I can think of a neater way, but now the
response object is just a set of pointers, so we can avoid all copies
and moves on the Wine side.
This commit is contained in:
Robbert van der Helm
2021-05-07 19:24:28 +02:00
parent 93b8643cba
commit f1d7b7bf57
6 changed files with 139 additions and 77 deletions
+1 -2
View File
@@ -1268,8 +1268,7 @@ size_t Vst3Bridge::register_object_instance(
return YaAudioProcessor::ProcessResponse{
.result = result,
.output_data =
request.data.move_outputs_to_response()};
.output_data = request.data.create_response()};
},
[&](const YaAudioProcessor::GetTailSamples& request)
-> YaAudioProcessor::GetTailSamples::Response {