enabled speex, fixed SDL_sound and ladspa segfault
git-svn-id: https://lmms.svn.sf.net/svnroot/lmms/trunk/lmms@438 0778d3d1-df1d-0410-868b-ea421aaaa00d
This commit is contained in:
@@ -107,6 +107,7 @@ ladspaEffect::ladspaEffect( effect::constructionData * _cdata ) :
|
||||
p->name = m_ladspa->getPortName( m_key, port );
|
||||
p->proc = proc;
|
||||
p->port_id = port;
|
||||
p->control = NULL;
|
||||
|
||||
// Determine the port's category.
|
||||
if( m_ladspa->isPortAudio( m_key, port ) )
|
||||
@@ -381,6 +382,11 @@ bool FASTCALL ladspaEffect::processAudioBuffer( surroundSampleFrame * _buf,
|
||||
}
|
||||
break;
|
||||
case CONTROL_RATE_INPUT:
|
||||
if( m_ports[proc][port]->control ==
|
||||
NULL )
|
||||
{
|
||||
break;
|
||||
}
|
||||
m_ports[proc][port]->value =
|
||||
static_cast<LADSPA_Data>(
|
||||
m_ports[proc][port]->control->getValue() /
|
||||
|
||||
Reference in New Issue
Block a user