remove sample-rate adjustment of plugin parameters - represents a misunderstanding of the LADSPA spec
git-svn-id: svn://localhost/ardour2/branches/3.0@9217 d708f5d6-7413-0410-9779-e7cbd77b26cf
This commit is contained in:
parent
1bff54a23c
commit
0d95a4bfe4
@ -1074,10 +1074,7 @@ PluginInsert::PluginControl::set_value (double user_val)
|
|||||||
double
|
double
|
||||||
PluginInsert::PluginControl::user_to_plugin (double val) const
|
PluginInsert::PluginControl::user_to_plugin (double val) const
|
||||||
{
|
{
|
||||||
if (_sr_dependent) {
|
/* no known transformations at this time */
|
||||||
val /= _session.frame_rate ();
|
|
||||||
}
|
|
||||||
|
|
||||||
return val;
|
return val;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -1115,10 +1112,7 @@ PluginInsert::PluginControl::plugin_to_ui (double val) const
|
|||||||
double
|
double
|
||||||
PluginInsert::PluginControl::plugin_to_user (double val) const
|
PluginInsert::PluginControl::plugin_to_user (double val) const
|
||||||
{
|
{
|
||||||
if (_sr_dependent) {
|
/* no known transformations at this time */
|
||||||
val = val * _session.frame_rate ();
|
|
||||||
}
|
|
||||||
|
|
||||||
return val;
|
return val;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user