add DEBUG_TRACE for all (?) backend callbacks

This commit is contained in:
Paul Davis 2019-10-28 16:07:38 -06:00
parent 5704f1ca9e
commit 4073e7573d
2 changed files with 10 additions and 0 deletions

View File

@ -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;

View File

@ -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 */
}