diff options
author | Sakari Bergen <sakari.bergen@beatwaves.net> | 2011-01-16 19:41:11 +0000 |
---|---|---|
committer | Sakari Bergen <sakari.bergen@beatwaves.net> | 2011-01-16 19:41:11 +0000 |
commit | a406d9183adc67075a4e802fd8254c2560df9964 (patch) | |
tree | 2bb5cfa9a25f5951e37a1a9e8c041cca6c960925 /libs/ardour/route.cc | |
parent | 113e6b505a27b3cbdb26f96b96c92cf35fe311dd (diff) |
Make stem export export from right before any processors.
The dialog does not support exporting from the outputs anymore, sorry. Will add options later...
git-svn-id: svn://localhost/ardour2/branches/3.0@8520 d708f5d6-7413-0410-9779-e7cbd77b26cf
Diffstat (limited to 'libs/ardour/route.cc')
-rw-r--r-- | libs/ardour/route.cc | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/libs/ardour/route.cc b/libs/ardour/route.cc index 5fe287c2bf..c1004a18f9 100644 --- a/libs/ardour/route.cc +++ b/libs/ardour/route.cc @@ -60,6 +60,7 @@ #include "ardour/utils.h" #include "ardour/graph.h" #include "ardour/unknown_processor.h" +#include "ardour/capturing_processor.h" #include "i18n.h" @@ -3057,6 +3058,21 @@ Route::put_monitor_send_at (Placement p) _session.set_dirty (); } +boost::shared_ptr<CapturingProcessor> +Route::add_export_point() +{ + // Check if it exists already + boost::shared_ptr<CapturingProcessor> processor; + if ((processor = boost::dynamic_pointer_cast<CapturingProcessor> (*_processors.begin()))) { + return processor; + } + + // ...else add it + processor.reset (new CapturingProcessor (_session)); + add_processor (processor, _processors.begin()); + return processor; +} + framecnt_t Route::update_total_latency () { |