a few new DEBUG_TRACE calls related to session transport state
authorPaul Davis <paul@linuxaudiosystems.com>
Tue, 22 Sep 2015 17:23:18 +0000 (13:23 -0400)
committerPaul Davis <paul@linuxaudiosystems.com>
Mon, 28 Sep 2015 21:42:11 +0000 (17:42 -0400)
libs/ardour/session_transport.cc

index 3c7d580af63d0092f5a1aca0ae4fc30d73a952f1..a9d68a2363b66f4bb8eee9323fe821872ba71da9 100644 (file)
@@ -1429,6 +1429,8 @@ Session::stop_transport (bool abort, bool clear_state)
                return;
        }
 
+       DEBUG_TRACE (DEBUG::Transport, string_compose ("stop_transport, declick required? %1\n", get_transport_declick_required()));
+       
        if (!get_transport_declick_required()) {
 
                /* stop has not yet been scheduled */
@@ -1481,8 +1483,8 @@ Session::stop_transport (bool abort, bool clear_state)
                        /* Not recording, schedule a declick in the next process() cycle and then stop at its end */
                        
                        new_bits = PendingDeclickOut;
+                       DEBUG_TRACE (DEBUG::Transport, string_compose ("stop scheduled for next process cycle @ %1\n", _transport_frame));
                }
-
                
                /* we'll be called again after the declick */
                transport_sub_state = SubState (transport_sub_state|new_bits);
@@ -1491,6 +1493,8 @@ Session::stop_transport (bool abort, bool clear_state)
                return;
 
        } else {
+
+               DEBUG_TRACE (DEBUG::Transport, "time to actually stop\n");
                
                /* declick was scheduled, but we've been called again, which means it is really time to stop