diff options
author | Paul Davis <paul@linuxaudiosystems.com> | 2019-10-28 16:07:38 -0600 |
---|---|---|
committer | Paul Davis <paul@linuxaudiosystems.com> | 2019-10-28 16:07:38 -0600 |
commit | 4073e7573dd3a397e41539586940625b7484afd1 (patch) | |
tree | c0f1307e1623990eb7e8325db0b992ab829d81e4 | |
parent | 5704f1ca9e03d3e3b7af097077a51d341cecd402 (diff) |
add DEBUG_TRACE for all (?) backend callbacks
-rw-r--r-- | libs/ardour/audioengine.cc | 4 | ||||
-rw-r--r-- | libs/ardour/port_manager.cc | 6 |
2 files changed, 10 insertions, 0 deletions
diff --git a/libs/ardour/audioengine.cc b/libs/ardour/audioengine.cc index fe8ed27bbb..69418c1911 100644 --- a/libs/ardour/audioengine.cc +++ b/libs/ardour/audioengine.cc @@ -1299,6 +1299,7 @@ AudioEngine::thread_init_callback (void* arg) int AudioEngine::sync_callback (TransportState state, samplepos_t position) { + DEBUG_TRACE (DEBUG::BackendCallbacks, string_compose (X_("sync callback %1, %2\n"), state, position)); if (_session) { return _session->backend_sync_callback (state, position); } @@ -1308,12 +1309,14 @@ AudioEngine::sync_callback (TransportState state, samplepos_t position) void AudioEngine::freewheel_callback (bool onoff) { + DEBUG_TRACE (DEBUG::BackendCallbacks, string_compose (X_("freewheel callback onoff %1\n"), onoff)); _freewheeling = onoff; } void AudioEngine::latency_callback (bool for_playback) { + DEBUG_TRACE (DEBUG::BackendCallbacks, string_compose (X_("latency callback playback ? %1\n"), for_playback)); if (_session) { _session->update_latency (for_playback); } @@ -1330,6 +1333,7 @@ AudioEngine::update_latencies () void AudioEngine::halted_callback (const char* why) { + DEBUG_TRACE (DEBUG::BackendCallbacks, string_compose (X_("halted callback why: [%1]\n"), why)); if (_in_destructor) { /* everything is under control */ return; diff --git a/libs/ardour/port_manager.cc b/libs/ardour/port_manager.cc index 0eff8cede0..24c693c431 100644 --- a/libs/ardour/port_manager.cc +++ b/libs/ardour/port_manager.cc @@ -656,6 +656,8 @@ PortManager::reconnect_ports () void PortManager::connect_callback (const string& a, const string& b, bool conn) { + DEBUG_TRACE (DEBUG::BackendCallbacks, string_compose (X_("connect callback %1 + %2 connected ? %3\n"), a, b, conn)); + boost::shared_ptr<Port> port_a; boost::shared_ptr<Port> port_b; Ports::iterator x; @@ -695,6 +697,8 @@ PortManager::connect_callback (const string& a, const string& b, bool conn) void PortManager::registration_callback () { + DEBUG_TRACE (DEBUG::BackendCallbacks, "port registration callback\n"); + if (!_port_remove_in_progress) { { @@ -767,6 +771,8 @@ PortManager::my_name() const int PortManager::graph_order_callback () { + DEBUG_TRACE (DEBUG::BackendCallbacks, "graph order callback\n"); + if (!_port_remove_in_progress) { GraphReordered(); /* EMIT SIGNAL */ } |