Fix shadowing problem with *Control::set_value.

Fix nasty situation when setting value on a plugin automation control that's playing back.


git-svn-id: svn://localhost/ardour2/branches/3.0@3823 d708f5d6-7413-0410-9779-e7cbd77b26cf
This commit is contained in:
David Robillard 2008-09-28 21:20:43 +00:00
parent edbe4a3307
commit 598c3cc958
7 changed files with 25 additions and 15 deletions

View file

@ -35,7 +35,7 @@ Control::Control(const Parameter& parameter, boost::shared_ptr<ControlList> list
/** Get the currently effective value (ie the one that corresponds to current output)
*/
float
Control::get_value(bool from_list, nframes_t frame) const
Control::get_float(bool from_list, nframes_t frame) const
{
if (from_list)
return _list->eval(frame);
@ -45,7 +45,7 @@ Control::get_value(bool from_list, nframes_t frame) const
void
Control::set_value(float value, bool to_list, nframes_t frame)
Control::set_float(float value, bool to_list, nframes_t frame)
{
_user_value = value;
@ -61,7 +61,7 @@ Control::set_value(float value, bool to_list, nframes_t frame)
* to the AutomationList.
*/
float
Control::user_value() const
Control::user_float() const
{
return _user_value;
}