summaryrefslogtreecommitdiff
path: root/libs/ardour/ardour/vca_manager.h
diff options
context:
space:
mode:
authorPaul Davis <paul@linuxaudiosystems.com>2016-01-25 22:15:07 -0500
committerPaul Davis <paul@linuxaudiosystems.com>2016-05-31 15:30:38 -0400
commitab9bb49f39c79ce48e39d99a617c2bccd259e6eb (patch)
tree3eaba0eed4a7e238a2093b55d2b65bbe98674e1f /libs/ardour/ardour/vca_manager.h
parentc5ba2d1eb69e0db5e5d9da85a27ac4e657c249ba (diff)
initial implementation of a VCA Manager object
Diffstat (limited to 'libs/ardour/ardour/vca_manager.h')
-rw-r--r--libs/ardour/ardour/vca_manager.h61
1 files changed, 61 insertions, 0 deletions
diff --git a/libs/ardour/ardour/vca_manager.h b/libs/ardour/ardour/vca_manager.h
new file mode 100644
index 0000000000..14a044070a
--- /dev/null
+++ b/libs/ardour/ardour/vca_manager.h
@@ -0,0 +1,61 @@
+/*
+ Copyright (C) 2016 Paul Davis
+
+ This program is free software; you can redistribute it and/or modify
+ it under the terms of the GNU General Public License as published by
+ the Free Software Foundation; either version 2 of the License, or
+ (at your option) any later version.
+
+ This program is distributed in the hope that it will be useful,
+ but WITHOUT ANY WARRANTY; without even the implied warranty of
+ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ GNU General Public License for more details.
+
+ You should have received a copy of the GNU General Public License
+ along with this program; if not, write to the Free Software
+ Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
+
+*/
+
+#ifndef __libardour_vca_manager_h__
+#define __libardour_vca_manager_h__
+
+#include <string>
+#include <list>
+
+#include <boost/shared_ptr.hpp>
+
+#include <glibmm/threads.h>
+
+#include "pbd/signals.h"
+
+#include "ardour/session_handle.h"
+
+namespace ARDOUR {
+
+class VCA;
+
+class VCAManager : public SessionHandleRef
+{
+ public:
+ VCAManager (ARDOUR::Session&);
+ ~VCAManager ();
+
+ boost::shared_ptr<VCA> create_vca (std::string const & name = std::string());
+ void remove_vca (boost::shared_ptr<VCA>);
+
+ typedef std::list<boost::shared_ptr<VCA> > VCAS;
+ VCAS vcas() const;
+
+ PBD::Signal1<void,boost::shared_ptr<VCA> > VCAAdded;
+ PBD::Signal1<void,boost::shared_ptr<VCA> > VCARemoved;
+
+ private:
+ mutable Glib::Threads::Mutex lock;
+ VCAS _vcas;
+
+};
+
+} // namespace
+
+#endif /* __libardour_vca_manager_h__ */