Fix rec-box w/count-in
authorRobin Gareus <robin@gareus.org>
Thu, 8 Jun 2017 11:33:35 +0000 (13:33 +0200)
committerRobin Gareus <robin@gareus.org>
Thu, 8 Jun 2017 11:34:23 +0000 (13:34 +0200)
Since 478f26b2ad, transport_rolling() is only true when actually rolling.
Count-in is a no-roll process (don't move playhead, no playhead UI
position interpolation 55b8b448).

But transport isn't exactly stopped either (preparing to roll), so
during count-in transport_stopped() == transport_rolling() == false.

gtk2_ardour/audio_streamview.cc
gtk2_ardour/midi_streamview.cc

index c7adcfce7ee259b9f60c8ed49964b967f705db1d..8a37a66cacbcac85aa3d669bbe273f572563bb58 100644 (file)
@@ -181,7 +181,7 @@ AudioStreamView::setup_rec_box ()
 {
        //cerr << _trackview.name() << " streamview SRB region_views.size() = " << region_views.size() << endl;
 
-       if (_trackview.session()->transport_rolling()) {
+       if (!_trackview.session()->transport_stopped()) {
 
                // cerr << "\trolling\n";
 
index 9e8014d4722002b5248f688390d16380aebf7cae..d3a316194df53ddec4c8522b63ac0deabc1a8990 100644 (file)
@@ -449,7 +449,7 @@ MidiStreamView::setup_rec_box ()
 {
        // cerr << _trackview.name() << " streamview SRB\n";
 
-       if (_trackview.session()->transport_rolling()) {
+       if (!_trackview.session()->transport_stopped()) {
 
                if (!rec_active &&
                    _trackview.session()->record_status() == Session::Recording &&