From c656aaab3c0c66ea0cde210950af341a3d71c559 Mon Sep 17 00:00:00 2001 From: Robin Gareus Date: Thu, 15 Mar 2018 20:24:53 +0100 Subject: [PATCH] VCA API-change: return created VCAs (handy for Lua scripts) --- libs/ardour/ardour/vca_manager.h | 2 +- libs/ardour/vca_manager.cc | 5 ++--- 2 files changed, 3 insertions(+), 4 deletions(-) diff --git a/libs/ardour/ardour/vca_manager.h b/libs/ardour/ardour/vca_manager.h index 2270a77e94..58d07a7fe2 100644 --- a/libs/ardour/ardour/vca_manager.h +++ b/libs/ardour/ardour/vca_manager.h @@ -44,7 +44,7 @@ public: VCAManager (ARDOUR::Session&); ~VCAManager (); - int create_vca (uint32_t how_many, std::string const & name = std::string()); + VCAList create_vca (uint32_t how_many, std::string const & name = std::string()); void remove_vca (boost::shared_ptr); boost::shared_ptr vca_by_number(int32_t) const; diff --git a/libs/ardour/vca_manager.cc b/libs/ardour/vca_manager.cc index 62589c8fdf..90a1233087 100644 --- a/libs/ardour/vca_manager.cc +++ b/libs/ardour/vca_manager.cc @@ -78,7 +78,7 @@ VCAManager::vcas () const return _vcas; } -int +VCAList VCAManager::create_vca (uint32_t howmany, std::string const & name_template) { VCAList vcal; @@ -113,10 +113,9 @@ VCAManager::create_vca (uint32_t howmany, std::string const & name_template) _session.set_dirty (); - return 0; + return vcal; } - void VCAManager::remove_vca (boost::shared_ptr vca) {