summaryrefslogtreecommitdiff
path: root/libs/ardour
diff options
context:
space:
mode:
authorPaul Davis <paul@linuxaudiosystems.com>2011-02-17 04:45:49 +0000
committerPaul Davis <paul@linuxaudiosystems.com>2011-02-17 04:45:49 +0000
commitfee370943854ff99aba1794382b6700b9feeb751 (patch)
treea374ba10624b1db054b9765e2bbd6e85ba9e7cc6 /libs/ardour
parent70d246fbe30d24197781384fa4825f32fb0f4235 (diff)
preparations for a working speaker editing dialog
git-svn-id: svn://localhost/ardour2/branches/3.0@8878 d708f5d6-7413-0410-9779-e7cbd77b26cf
Diffstat (limited to 'libs/ardour')
-rw-r--r--libs/ardour/ardour/speakers.h3
-rw-r--r--libs/ardour/speakers.cc14
2 files changed, 17 insertions, 0 deletions
diff --git a/libs/ardour/ardour/speakers.h b/libs/ardour/ardour/speakers.h
index f6e6e22848..0bee66af07 100644
--- a/libs/ardour/ardour/speakers.h
+++ b/libs/ardour/ardour/speakers.h
@@ -34,8 +34,11 @@ namespace ARDOUR {
class Speakers : public PBD::Stateful {
public:
Speakers ();
+ Speakers (const Speakers&);
virtual ~Speakers ();
+ Speakers& operator= (const Speakers&);
+
virtual int add_speaker (const PBD::AngularVector&);
virtual void remove_speaker (int id);
virtual void move_speaker (int id, const PBD::AngularVector& new_position);
diff --git a/libs/ardour/speakers.cc b/libs/ardour/speakers.cc
index 4229e77c65..1485f266d0 100644
--- a/libs/ardour/speakers.cc
+++ b/libs/ardour/speakers.cc
@@ -46,10 +46,24 @@ Speakers::Speakers ()
{
}
+Speakers::Speakers (const Speakers& s)
+{
+ _speakers = s._speakers;
+}
+
Speakers::~Speakers ()
{
}
+Speakers&
+Speakers::operator= (const Speakers& s)
+{
+ if (&s != this) {
+ _speakers = s._speakers;
+ }
+ return *this;
+}
+
void
Speakers::dump_speakers (ostream& o)
{