13
0

VCA API-change: return created VCAs (handy for Lua scripts)

This commit is contained in:
Robin Gareus 2018-03-15 20:24:53 +01:00
parent 51a0a2f74c
commit c656aaab3c
2 changed files with 3 additions and 4 deletions

View File

@ -44,7 +44,7 @@ public:
VCAManager (ARDOUR::Session&); VCAManager (ARDOUR::Session&);
~VCAManager (); ~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<VCA>); void remove_vca (boost::shared_ptr<VCA>);
boost::shared_ptr<VCA> vca_by_number(int32_t) const; boost::shared_ptr<VCA> vca_by_number(int32_t) const;

View File

@ -78,7 +78,7 @@ VCAManager::vcas () const
return _vcas; return _vcas;
} }
int VCAList
VCAManager::create_vca (uint32_t howmany, std::string const & name_template) VCAManager::create_vca (uint32_t howmany, std::string const & name_template)
{ {
VCAList vcal; VCAList vcal;
@ -113,10 +113,9 @@ VCAManager::create_vca (uint32_t howmany, std::string const & name_template)
_session.set_dirty (); _session.set_dirty ();
return 0; return vcal;
} }
void void
VCAManager::remove_vca (boost::shared_ptr<VCA> vca) VCAManager::remove_vca (boost::shared_ptr<VCA> vca)
{ {