diff options
author | Ben Loftis <ben@harrisonconsoles.com> | 2014-07-02 17:34:49 -0500 |
---|---|---|
committer | Ben Loftis <ben@harrisonconsoles.com> | 2014-07-02 17:35:38 -0500 |
commit | a1c8e67e50d0bb61e7389ccd81ea80f50ec3388a (patch) | |
tree | e6e24c44a8d0b3c9495e206cbb988204cd22276a /libs/ardour/session_transport.cc | |
parent | 0f1c7b1d71078a25c1df80e7c95d59229f613414 (diff) |
add a method to cancel a pending play_range. this is needed when we are modifying the range with keyboard commands.
Diffstat (limited to 'libs/ardour/session_transport.cc')
-rw-r--r-- | libs/ardour/session_transport.cc | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/libs/ardour/session_transport.cc b/libs/ardour/session_transport.cc index 85b36e5a66..19f86eb2b3 100644 --- a/libs/ardour/session_transport.cc +++ b/libs/ardour/session_transport.cc @@ -228,6 +228,14 @@ Session::request_play_range (list<AudioRange>* range, bool leave_rolling) } 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) { DEBUG_TRACE (DEBUG::Transport, string_compose ("realtime stop @ %1\n", _transport_frame)); |