Simplify object reading

No longer needs to read into an existing object after the last change,
and reusing that function here too makes it less error prone.
This commit is contained in:
Robbert van der Helm
2020-05-10 13:10:16 +02:00
parent e762a57c0d
commit ba91971829
3 changed files with 11 additions and 19 deletions
+2 -3
View File
@@ -253,9 +253,8 @@ void WineBridge::handle_dispatch() {
std::vector<std::vector<float>> output_buffers(plugin->numOutputs);
while (true) {
AudioBuffers request;
request =
read_object(host_vst_process_replacing, request, process_buffer);
auto request = read_object<AudioBuffers>(host_vst_process_replacing,
process_buffer);
// The process functions expect a `float**` for their inputs and
// their outputs