draw speaker positions in 2d panner

git-svn-id: svn://localhost/ardour2/branches/3.0@8891 d708f5d6-7413-0410-9779-e7cbd77b26cf
This commit is contained in:
Paul Davis 2011-02-17 19:47:53 +00:00
parent 96cc6c3410
commit 1b8e8303b2
7 changed files with 26 additions and 12 deletions

View file

@ -45,9 +45,9 @@ using namespace std;
VBAPSpeakers::VBAPSpeakers (boost::shared_ptr<Speakers> s)
: _dimension (2)
, parent (s)
, _parent (s)
{
parent->Changed.connect_same_thread (speaker_connection, boost::bind (&VBAPSpeakers::update, this));
_parent->Changed.connect_same_thread (speaker_connection, boost::bind (&VBAPSpeakers::update, this));
update ();
}
@ -60,7 +60,7 @@ VBAPSpeakers::update ()
{
int dim = 2;
_speakers = parent->speakers();
_speakers = _parent->speakers();
for (vector<Speaker>::const_iterator i = _speakers.begin(); i != _speakers.end(); ++i) {
if ((*i).angles().ele != 0.0) {