From 96541d4830e833a3bb9f277fec3b6d94eb4b538f Mon Sep 17 00:00:00 2001 From: Robbert van der Helm Date: Sat, 18 Apr 2020 22:12:19 +0200 Subject: [PATCH] Don't filter any events These events would cause crashes when the rest of the functionality wasn't implemented yet, but it's not needed anymore. --- src/wine-host/plugin-bridge.cpp | 15 --------------- 1 file changed, 15 deletions(-) diff --git a/src/wine-host/plugin-bridge.cpp b/src/wine-host/plugin-bridge.cpp index fc951e49..19b7daf9 100644 --- a/src/wine-host/plugin-bridge.cpp +++ b/src/wine-host/plugin-bridge.cpp @@ -268,21 +268,6 @@ class HostCallbackDataConverter : DefaultDataConverter { const intptr_t value, const void* data) { switch (opcode) { - // Some hsots will outright crash if they receive this opcode, not - // sure why they don't just ignore it. Please let me know if there's - // a better way to handle this instead of just ignoring the event! - // - // TODO: Filtering these two events fixes crashes, but should this - // be needed? `audioMasterWantMidi` is deprecated though. - case audioMasterWantMidi: - case audioMasterUpdateDisplay: - std::cerr << "Got opcode " - << opcode_to_string(false, opcode) - .value_or(std::to_string(opcode)) - << "(), ignoring..." << std::endl; - - return std::nullopt; - break; case audioMasterGetTime: return WantsVstTimeInfo{}; break;