Communicate over the socket instead of STDIN

This commit is contained in:
Robbert van der Helm
2020-02-24 16:43:04 +01:00
parent df47104297
commit 5c946fff6a
3 changed files with 16 additions and 17 deletions
+2 -2
View File
@@ -102,9 +102,9 @@ intptr_t Bridge::dispatch(AEffect* /*plugin*/,
}
const Event event{opcode, parameter, value, option};
write_object(vst_stdin, event);
write_object(host_vst_dispatch, event);
const auto response = read_object<EventResult>(vst_stdout);
const auto response = read_object<EventResult>(host_vst_dispatch);
if (response.result) {
std::copy(response.result->begin(), response.result->end(),
static_cast<char*>(result));