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:
Javier Serrano Polo
2006-12-11 03:18:16 +00:00
parent f9063f9383
commit c6aa917e9c
7 changed files with 37 additions and 16 deletions

View File

@@ -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() /