diff --git a/src/common/logging.cpp b/src/common/logging.cpp index 37c719bc..43afb4b9 100644 --- a/src/common/logging.cpp +++ b/src/common/logging.cpp @@ -43,8 +43,6 @@ constexpr char logging_file_environment_variable[] = "YABRIDGE_DEBUG_FILE"; constexpr char logging_verbosity_environment_variable[] = "YABRIDGE_DEBUG_LEVEL"; -std::optional opcode_to_string(bool is_dispatch, int opcode); - Logger::Logger(std::shared_ptr stream, Verbosity verbosity_level, std::string prefix) diff --git a/src/common/logging.h b/src/common/logging.h index ad2da1fe..51167236 100644 --- a/src/common/logging.h +++ b/src/common/logging.h @@ -117,3 +117,5 @@ class Logger { */ std::string prefix; }; + +std::optional opcode_to_string(bool is_dispatch, int opcode); diff --git a/src/wine-host/plugin-bridge.cpp b/src/wine-host/plugin-bridge.cpp index 9b1a2b25..ccc4bdfa 100644 --- a/src/wine-host/plugin-bridge.cpp +++ b/src/wine-host/plugin-bridge.cpp @@ -203,6 +203,11 @@ class HostCallbackDataConverter : DefaultDataConverter { // 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; default: