mirror of
https://github.com/robbert-vdh/yabridge.git
synced 2026-05-07 03:50:11 +02:00
Print ignored opcodes
This commit is contained in:
@@ -43,8 +43,6 @@ constexpr char logging_file_environment_variable[] = "YABRIDGE_DEBUG_FILE";
|
||||
constexpr char logging_verbosity_environment_variable[] =
|
||||
"YABRIDGE_DEBUG_LEVEL";
|
||||
|
||||
std::optional<std::string> opcode_to_string(bool is_dispatch, int opcode);
|
||||
|
||||
Logger::Logger(std::shared_ptr<std::ostream> stream,
|
||||
Verbosity verbosity_level,
|
||||
std::string prefix)
|
||||
|
||||
@@ -117,3 +117,5 @@ class Logger {
|
||||
*/
|
||||
std::string prefix;
|
||||
};
|
||||
|
||||
std::optional<std::string> opcode_to_string(bool is_dispatch, int opcode);
|
||||
|
||||
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user