From fee370943854ff99aba1794382b6700b9feeb751 Mon Sep 17 00:00:00 2001 From: Paul Davis Date: Thu, 17 Feb 2011 04:45:49 +0000 Subject: preparations for a working speaker editing dialog git-svn-id: svn://localhost/ardour2/branches/3.0@8878 d708f5d6-7413-0410-9779-e7cbd77b26cf --- libs/ardour/ardour/speakers.h | 3 +++ libs/ardour/speakers.cc | 14 ++++++++++++++ 2 files changed, 17 insertions(+) (limited to 'libs/ardour') 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) { -- cgit v1.2.3