mirror of
https://github.com/Ardour/ardour.git
synced 2025-12-08 15:54:57 +01:00
Coding style.
git-svn-id: svn://localhost/ardour2/branches/3.0@6642 d708f5d6-7413-0410-9779-e7cbd77b26cf
This commit is contained in:
parent
0e1c62150a
commit
797cd64d12
1 changed files with 5 additions and 3 deletions
|
|
@ -37,10 +37,11 @@ Control::Control(const Parameter& parameter, boost::shared_ptr<ControlList> list
|
|||
float
|
||||
Control::get_float(bool from_list, FrameTime frame) const
|
||||
{
|
||||
if (from_list)
|
||||
if (from_list) {
|
||||
return _list->eval(frame);
|
||||
else
|
||||
} else {
|
||||
return _user_value;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
|
@ -49,8 +50,9 @@ Control::set_float(float value, bool to_list, FrameTime frame)
|
|||
{
|
||||
_user_value = value;
|
||||
|
||||
if (to_list)
|
||||
if (to_list) {
|
||||
_list->add(frame, value);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue