summaryrefslogtreecommitdiff
path: root/libs/panners/vbap/vbap_speakers.cc
diff options
context:
space:
mode:
authorPaul Davis <paul@linuxaudiosystems.com>2011-02-17 18:54:13 +0000
committerPaul Davis <paul@linuxaudiosystems.com>2011-02-17 18:54:13 +0000
commit96cc6c3410c927ca14f50a52487e304967efdbf3 (patch)
tree1d583674cf6bbce3a1aecae26191716c79b8bd96 /libs/panners/vbap/vbap_speakers.cc
parent0d61f205ab4432480dc0e12787774f1d859f2dbf (diff)
draw pucks (signal positions) on vbap panner
git-svn-id: svn://localhost/ardour2/branches/3.0@8890 d708f5d6-7413-0410-9779-e7cbd77b26cf
Diffstat (limited to 'libs/panners/vbap/vbap_speakers.cc')
-rw-r--r--libs/panners/vbap/vbap_speakers.cc8
1 files changed, 5 insertions, 3 deletions
diff --git a/libs/panners/vbap/vbap_speakers.cc b/libs/panners/vbap/vbap_speakers.cc
index 506ad4a25b..bf87791b60 100644
--- a/libs/panners/vbap/vbap_speakers.cc
+++ b/libs/panners/vbap/vbap_speakers.cc
@@ -45,9 +45,9 @@ using namespace std;
VBAPSpeakers::VBAPSpeakers (boost::shared_ptr<Speakers> s)
: _dimension (2)
- , _speakers (s->speakers())
+ , parent (s)
{
- // s.Changed.connect_same_thread (speaker_connection, boost::bind (&VBAPSpeakers::update, this));
+ parent->Changed.connect_same_thread (speaker_connection, boost::bind (&VBAPSpeakers::update, this));
update ();
}
@@ -59,7 +59,9 @@ void
VBAPSpeakers::update ()
{
int dim = 2;
-
+
+ _speakers = parent->speakers();
+
for (vector<Speaker>::const_iterator i = _speakers.begin(); i != _speakers.end(); ++i) {
if ((*i).angles().ele != 0.0) {
cerr << "\n\n\nSPEAKER " << (*i).id << " has ele = " << (*i).angles().ele << "\n\n\n\n";