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
@@ -86,7 +86,7 @@ int main(int argc, char* argv[]) {
// TODO: Remove debug, we're just reporting the plugin's name we retrieved
// above
while (true) {
auto event = read_object<Event>(std::cin);
auto event = read_object<Event>(host_vst_dispatch);
EventResult response;
if (event.opcode == effGetEffectName) {
@@ -96,7 +96,7 @@ int main(int argc, char* argv[]) {
response.return_value = 0;
}
write_object(std::cout, response);
write_object(host_vst_dispatch, response);
}
}