Avoid allocations when reconstructing process data

This commit is contained in:
Robbert van der Helm
2021-05-07 18:21:30 +02:00
parent 814d3c688c
commit 93b8643cba
4 changed files with 85 additions and 76 deletions
@@ -236,7 +236,7 @@ class YaAudioProcessor : public Steinberg::Vst::IAudioProcessor {
* Wine plugin host. This `YaProcessData` object wraps around all input
* audio buffers, parameter changes and events along with all context data
* provided by the host so we can send it to the Wine plugin host. We can
* then use `YaProcessData::get()` on the Wine plugin host side to
* then use `YaProcessData::reconstruct()` on the Wine plugin host side to
* reconstruct the original `ProcessData` object, and we then finally use
* `YaProcessData::move_outputs_to_response()` to create a response object
* that we can write back to the `ProcessData` object provided by the host.