summaryrefslogtreecommitdiff
path: root/libs/ardour/panner.cc
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2008-09-19 00:47:49 +0000
committerDavid Robillard <d@drobilla.net>2008-09-19 00:47:49 +0000
commitd357eca668044badcb4bab318e2e74cfffa9a0b0 (patch)
treeeab9bf33b194f9e37c20f84375e5caa748ee994a /libs/ardour/panner.cc
parent3d976c5b727e4d55ce439b1d7c055a814477fa1a (diff)
Factor out sequencing related things into an independant new library: "evoral".
Anything related to the storage of events/values over a range of time lives in evoral. This includes MidiModel (Evoral::Sequence) and automation data (AutomationList (Evoral::ControlList), Automatable (Evoral::ControlSet), etc). libs/evoral synced with http://svn.drobilla.net/lad/trunk/evoral r1511. git-svn-id: svn://localhost/ardour2/branches/3.0@3754 d708f5d6-7413-0410-9779-e7cbd77b26cf
Diffstat (limited to 'libs/ardour/panner.cc')
-rw-r--r--libs/ardour/panner.cc22
1 files changed, 11 insertions, 11 deletions
diff --git a/libs/ardour/panner.cc b/libs/ardour/panner.cc
index 2163ba5cc0..b89c021042 100644
--- a/libs/ardour/panner.cc
+++ b/libs/ardour/panner.cc
@@ -228,7 +228,7 @@ BaseStereoPanner::load (istream& in, string path, uint32_t& linecnt)
/* now that we are done loading */
- _control->list()->StateChanged ();
+ ((AutomationList*)_control->list().get())->StateChanged ();
return 0;
}
@@ -486,7 +486,7 @@ EqualPowerStereoPanner::state (bool full_state)
root->add_property (X_("type"), EqualPowerStereoPanner::name);
XMLNode* autonode = new XMLNode (X_("Automation"));
- autonode->add_child_nocopy (_control->list()->state (full_state));
+ autonode->add_child_nocopy (((AutomationList*)_control->list().get())->state (full_state));
root->add_child_nocopy (*autonode);
StreamPanner::add_state (*root);
@@ -519,9 +519,9 @@ EqualPowerStereoPanner::set_state (const XMLNode& node)
} else if ((*iter)->name() == X_("Automation")) {
- _control->list()->set_state (*((*iter)->children().front()));
+ _control->alist()->set_state (*((*iter)->children().front()));
- if (_control->list()->automation_state() != Off) {
+ if (_control->alist()->automation_state() != Off) {
set_position (_control->list()->eval (parent.session().transport_frame()));
}
}
@@ -917,7 +917,7 @@ void
Panner::set_automation_style (AutoStyle style)
{
for (vector<StreamPanner*>::iterator i = begin(); i != end(); ++i) {
- (*i)->pan_control()->list()->set_automation_style (style);
+ ((AutomationList*)(*i)->pan_control()->list().get())->set_automation_style (style);
}
_session.set_dirty ();
}
@@ -926,7 +926,7 @@ void
Panner::set_automation_state (AutoState state)
{
for (vector<StreamPanner*>::iterator i = begin(); i != end(); ++i) {
- (*i)->pan_control()->list()->set_automation_state (state);
+ ((AutomationList*)(*i)->pan_control()->list().get())->set_automation_state (state);
}
_session.set_dirty ();
}
@@ -935,7 +935,7 @@ AutoState
Panner::automation_state () const
{
if (!empty()) {
- return front()->pan_control()->list()->automation_state ();
+ return ((AutomationList*)front()->pan_control()->list().get())->automation_state ();
} else {
return Off;
}
@@ -945,7 +945,7 @@ AutoStyle
Panner::automation_style () const
{
if (!empty()) {
- return front()->pan_control()->list()->automation_style ();
+ return ((AutomationList*)front()->pan_control()->list().get())->automation_style ();
} else {
return Absolute;
}
@@ -955,7 +955,7 @@ void
Panner::transport_stopped (nframes_t frame)
{
for (vector<StreamPanner*>::iterator i = begin(); i != end(); ++i) {
- (*i)->pan_control()->list()->reposition_for_rt_add (frame);
+ ((AutomationList*)(*i)->pan_control()->list().get())->reposition_for_rt_add (frame);
}
}
@@ -963,7 +963,7 @@ void
Panner::snapshot (nframes_t now)
{
for (vector<StreamPanner*>::iterator i = begin(); i != end(); ++i) {
- boost::shared_ptr<AutomationList> list = (*i)->pan_control()->list();
+ AutomationList* list = ((AutomationList*)(*i)->pan_control()->list().get());
if (list->automation_write())
list->rt_add(now, (*i)->pan_control()->get_value());
}
@@ -1127,7 +1127,7 @@ bool
Panner::touching () const
{
for (vector<StreamPanner*>::const_iterator i = begin(); i != end(); ++i) {
- if ((*i)->pan_control()->list()->touching ()) {
+ if (((AutomationList*)(*i)->pan_control()->list().get())->touching ()) {
return true;
}
}