Implement writing back YaProcessDataResponse

Everything around `ProcessData` is now fully implemented and should in
theory work.
This commit is contained in:
Robbert van der Helm
2020-12-16 18:14:28 +01:00
parent 6f38f8400c
commit 2bf98d0a97
9 changed files with 107 additions and 2 deletions
@@ -47,6 +47,16 @@ IMPLEMENT_FUNKNOWN_METHODS(YaParamValueQueue,
Steinberg::Vst::IParamValueQueue::iid)
#pragma GCC diagnostic pop
void YaParamValueQueue::write_back_outputs(
Steinberg::Vst::IParamValueQueue& output_queue) const {
// We don't need this value
int32 index;
for (const auto& [sample_offset, value] : queue) {
// We don't check for `kResultOk` here
output_queue.addPoint(sample_offset, value, index);
}
}
Steinberg::Vst::ParamID PLUGIN_API YaParamValueQueue::getParameterId() {
return parameter_id;
}