LadspaEffect: fixed default value if hints are sample rate dependent
When hints are sample rate dependent we also need to scale default value accordingly as well. Closes #334.
This commit is contained in:
@@ -418,6 +418,11 @@ void LadspaEffect::pluginInstantiation()
|
||||
p->def = 1.0f;
|
||||
}
|
||||
}
|
||||
else if( manager->areHintsSampleRateDependent( m_key, port ) )
|
||||
{
|
||||
p->def *= m_maxSampleRate;
|
||||
}
|
||||
|
||||
|
||||
p->max *= p->scale;
|
||||
p->min *= p->scale;
|
||||
|
||||
Reference in New Issue
Block a user