diff options
Diffstat (limited to 'libs/ardour')
-rw-r--r-- | libs/ardour/ardour/speakers.h | 3 | ||||
-rw-r--r-- | libs/ardour/speakers.cc | 14 |
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) { |