13
0

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:
Paul Davis 2011-03-26 21:28:40 +00:00
parent 1bff54a23c
commit 0d95a4bfe4

View File

@ -1074,10 +1074,7 @@ PluginInsert::PluginControl::set_value (double user_val)
double
PluginInsert::PluginControl::user_to_plugin (double val) const
{
if (_sr_dependent) {
val /= _session.frame_rate ();
}
/* no known transformations at this time */
return val;
}
@ -1115,10 +1112,7 @@ PluginInsert::PluginControl::plugin_to_ui (double val) const
double
PluginInsert::PluginControl::plugin_to_user (double val) const
{
if (_sr_dependent) {
val = val * _session.frame_rate ();
}
/* no known transformations at this time */
return val;
}