add a method to cancel a pending play_range. this is needed when we are modifying...
[ardour.git] / libs / ardour / session_transport.cc
index 85b36e5a66231a0548f7f99e83358adf9a140f4e..19f86eb2b30a1e3200df00a5a396dce4ce951da7 100644 (file)
@@ -227,6 +227,14 @@ Session::request_play_range (list<AudioRange>* range, bool leave_rolling)
        queue_event (ev);
 }
 
+void
+Session::request_cancel_play_range ()
+{
+       SessionEvent* ev = new SessionEvent (SessionEvent::CancelPlayAudioRange, SessionEvent::Add, SessionEvent::Immediate, 0, 0);
+       queue_event (ev);
+}
+
+
 void
 Session::realtime_stop (bool abort, bool clear_state)
 {