mirror of
https://github.com/Ardour/ardour.git
synced 2026-01-06 05:35:47 +01:00
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:
parent
96cc6c3410
commit
1b8e8303b2
7 changed files with 26 additions and 12 deletions
|
|
@ -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) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue