add (finally) DEBUG::AudioEngine bit and convert existing debug trace messages to use it
This commit is contained in:
parent
59cc85b821
commit
e58b337c84
@ -66,6 +66,7 @@ namespace PBD {
|
||||
LIBARDOUR_API extern uint64_t Automation;
|
||||
LIBARDOUR_API extern uint64_t WiimoteControl;
|
||||
LIBARDOUR_API extern uint64_t Ports;
|
||||
LIBARDOUR_API extern uint64_t AudioEngine;
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -492,17 +492,21 @@ AudioEngine::discover_backends ()
|
||||
find_matching_files_in_search_path (backend_search_path (),
|
||||
dll_extension_pattern, backend_modules);
|
||||
|
||||
DEBUG_TRACE (DEBUG::Panning, string_compose (_("looking for backends in %1\n"), backend_search_path().to_string()));
|
||||
DEBUG_TRACE (DEBUG::AudioEngine, string_compose ("looking for backends in %1\n", backend_search_path().to_string()));
|
||||
|
||||
for (vector<std::string>::iterator i = backend_modules.begin(); i != backend_modules.end(); ++i) {
|
||||
|
||||
AudioBackendInfo* info;
|
||||
|
||||
DEBUG_TRACE (DEBUG::AudioEngine, string_compose ("Checking possible backend in %1\n", *i));
|
||||
|
||||
if ((info = backend_discover (*i)) != 0) {
|
||||
_backends.insert (make_pair (info->name, info));
|
||||
}
|
||||
}
|
||||
|
||||
DEBUG_TRACE (DEBUG::AudioEngine, string_compose ("Found %1 backends\n", _backends.size()));
|
||||
|
||||
return _backends.size();
|
||||
}
|
||||
|
||||
|
@ -62,5 +62,6 @@ uint64_t PBD::DEBUG::OrderKeys = PBD::new_debug_bit ("orderkeys");
|
||||
uint64_t PBD::DEBUG::Automation = PBD::new_debug_bit ("automation");
|
||||
uint64_t PBD::DEBUG::WiimoteControl = PBD::new_debug_bit ("wiimotecontrol");
|
||||
uint64_t PBD::DEBUG::Ports = PBD::new_debug_bit ("Ports");
|
||||
uint64_t PBD::DEBUG::AudioEngine = PBD::new_debug_bit ("AudioEngine");
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user