Send MTC/MMC on the initial playhead grab as well as on subsequent movement.
authorCarl Hetherington <carl@carlh.net>
Thu, 8 Jul 2010 01:26:33 +0000 (01:26 +0000)
committerCarl Hetherington <carl@carlh.net>
Thu, 8 Jul 2010 01:26:33 +0000 (01:26 +0000)
git-svn-id: svn://localhost/ardour2/branches/3.0@7393 d708f5d6-7413-0410-9779-e7cbd77b26cf

gtk2_ardour/editor_drag.cc

index 19213498939deafed1d8a3b451d81deb1c3356bd..27ca9b6c78c1c166ed1f237a4e23463d12899275 100644 (file)
@@ -2110,12 +2110,18 @@ CursorDrag::start_grab (GdkEvent* event, Gdk::Cursor* c)
        if (_cursor == _editor->playhead_cursor) {
                _editor->_dragging_playhead = true;
 
-               if (_editor->session() && _was_rolling && _stop) {
-                       _editor->session()->request_stop ();
-               }
+               if (_editor->session()) {
+                       if (_was_rolling && _stop) {
+                               _editor->session()->request_stop ();
+                       }
+
+                       if (_editor->session()->is_auditioning()) {
+                               _editor->session()->cancel_audition ();
+                       }
 
-               if (_editor->session() && _editor->session()->is_auditioning()) {
-                       _editor->session()->cancel_audition ();
+                       nframes64_t const f = _editor->playhead_cursor->current_frame;
+                       _editor->session()->send_mmc_locate (f);
+                       _editor->session()->send_full_time_code (f);
                }
        }