corrected ladspa sample rate dependent control handling
git-svn-id: https://lmms.svn.sf.net/svnroot/lmms/trunk/lmms@299 0778d3d1-df1d-0410-868b-ea421aaaa00d
This commit is contained in:
1 parent
4cb0d266a3
commit
2000733293
4 files changed
+38
-15
No files matched your search
+3
-3
@@ -134,13 +134,13 @@ effect::effect( const ladspa_key_t & _key, engine * _engine ) :
|
||||
}
|
||||
|
||||
// Get the range and default values.
|
||||
p->is_scaled = m_ladspa->areHintsSampleRateDependent( _key, port );
|
||||
p->max = m_ladspa->getUpperBound( _key, port );
|
||||
|
||||
if( p->max == NOHINT )
|
||||
{
|
||||
p->max = 999999.0f;
|
||||
}
|
||||
else if( m_ladspa->areHintsSampleRateDependent( _key, port ) )
|
||||
else if( p->is_scaled )
|
||||
{
|
||||
p->max *= eng()->getMixer()->sampleRate();
|
||||
}
|
||||
@@ -150,7 +150,7 @@ effect::effect( const ladspa_key_t & _key, engine * _engine ) :
|
||||
{
|
||||
p->min = -999999.0f;
|
||||
}
|
||||
else if( m_ladspa->areHintsSampleRateDependent( _key, port ) )
|
||||
else if( p->is_scaled )
|
||||
{
|
||||
p->min *= eng()->getMixer()->sampleRate();
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user