[linux-audio-dev] LADSPA plugin parameters realtime control

From: Artemio <artemio@email-addr-hidden>
Date: Sat Jul 09 2005 - 15:24:20 EEST

Hello all!

I am here to ask you one thing. If I want sample-precise realtime
control for the plugin, should I be getting all the parameters inside
the cycle which travels through the buffer contents?

E.g., should the code that looks like this:

fParameter = *(psMyPlugin->m_pfSomeParameter);

pfInput = psXShaper->m_pfInputBuffer1;
pfOutput = psXShaper->m_pfOutputBuffer1;
                
for(lSampleIndex = 0; lSampleIndex < SampleCount; lSampleIndex++){
        /* do something with the data */
}

be replaced by this:

pfInput = psXShaper->m_pfInputBuffer1;
pfOutput = psXShaper->m_pfOutputBuffer1;
                
for(lSampleIndex = 0; lSampleIndex < SampleCount; lSampleIndex++){
        fParameter = *(psMyPlugin->m_pfSomeParameter);
        /* do something with the data */
}

I believe the answer is yes... But maybe I'm wrong?

Thanks!

Artemiy.
Received on Sat Jul 9 16:15:38 2005

This archive was generated by hypermail 2.1.8 : Sat Jul 09 2005 - 16:15:42 EEST