From c2476ea73da79237984fb4cedb397033d0bd62ec Mon Sep 17 00:00:00 2001 From: Paul Davis Date: Wed, 3 Dec 2014 09:15:10 -0500 Subject: add API for controlling and determining active status of a SceneChange Conflicts: libs/ardour/ardour/scene_change.h --- libs/ardour/midi_scene_changer.cc | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'libs/ardour/midi_scene_changer.cc') diff --git a/libs/ardour/midi_scene_changer.cc b/libs/ardour/midi_scene_changer.cc index bd32ff308b..6288a6fc84 100644 --- a/libs/ardour/midi_scene_changer.cc +++ b/libs/ardour/midi_scene_changer.cc @@ -96,6 +96,10 @@ MIDISceneChanger::gather (const Locations::LocationList& locations) void MIDISceneChanger::rt_deliver (MidiBuffer& mbuf, framepos_t when, boost::shared_ptr msc) { + if (!msc->active()) { + return; + } + uint8_t buf[4]; size_t cnt; @@ -121,6 +125,10 @@ MIDISceneChanger::rt_deliver (MidiBuffer& mbuf, framepos_t when, boost::shared_p void MIDISceneChanger::non_rt_deliver (boost::shared_ptr msc) { + if (!msc->active()) { + return; + } + uint8_t buf[4]; size_t cnt; boost::shared_ptr aport = boost::dynamic_pointer_cast(output_port); -- cgit v1.2.3