mirror of
https://github.com/Ardour/ardour.git
synced 2025-12-08 07:45:00 +01:00
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:
parent
edbe4a3307
commit
598c3cc958
7 changed files with 25 additions and 15 deletions
|
|
@ -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;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue