mirror of
https://github.com/robbert-vdh/yabridge.git
synced 2026-05-10 04:30:12 +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[] =
|
constexpr char logging_verbosity_environment_variable[] =
|
||||||
"YABRIDGE_DEBUG_LEVEL";
|
"YABRIDGE_DEBUG_LEVEL";
|
||||||
|
|
||||||
std::optional<std::string> opcode_to_string(bool is_dispatch, int opcode);
|
|
||||||
|
|
||||||
Logger::Logger(std::shared_ptr<std::ostream> stream,
|
Logger::Logger(std::shared_ptr<std::ostream> stream,
|
||||||
Verbosity verbosity_level,
|
Verbosity verbosity_level,
|
||||||
std::string prefix)
|
std::string prefix)
|
||||||
|
|||||||
@@ -117,3 +117,5 @@ class Logger {
|
|||||||
*/
|
*/
|
||||||
std::string prefix;
|
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.
|
// be needed? `audioMasterWantMidi` is deprecated though.
|
||||||
case audioMasterWantMidi:
|
case audioMasterWantMidi:
|
||||||
case audioMasterUpdateDisplay:
|
case audioMasterUpdateDisplay:
|
||||||
|
std::cerr << "Got opcode "
|
||||||
|
<< opcode_to_string(false, opcode)
|
||||||
|
.value_or(std::to_string(opcode))
|
||||||
|
<< "), ignoring..." << std::endl;
|
||||||
|
|
||||||
return std::nullopt;
|
return std::nullopt;
|
||||||
break;
|
break;
|
||||||
default:
|
default:
|
||||||
|
|||||||
Reference in New Issue
Block a user