summaryrefslogtreecommitdiff
path: root/libs/ardour/session_process.cc
diff options
context:
space:
mode:
authorBen Loftis <ben@harrisonconsoles.com>2014-07-02 17:34:49 -0500
committerBen Loftis <ben@harrisonconsoles.com>2014-07-02 17:35:38 -0500
commita1c8e67e50d0bb61e7389ccd81ea80f50ec3388a (patch)
treee6e24c44a8d0b3c9495e206cbb988204cd22276a /libs/ardour/session_process.cc
parent0f1c7b1d71078a25c1df80e7c95d59229f613414 (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_process.cc')
-rw-r--r--libs/ardour/session_process.cc4
1 files changed, 4 insertions, 0 deletions
diff --git a/libs/ardour/session_process.cc b/libs/ardour/session_process.cc
index 680f2861de..b1e336c373 100644
--- a/libs/ardour/session_process.cc
+++ b/libs/ardour/session_process.cc
@@ -1142,6 +1142,10 @@ Session::process_event (SessionEvent* ev)
set_play_range (ev->audio_range, (ev->speed == 1.0f));
break;
+ case SessionEvent::CancelPlayAudioRange:
+ unset_play_range();
+ break;
+
case SessionEvent::RealTimeOperation:
process_rtop (ev);
del = false; // other side of RT request needs to clean up