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

Artemio artemio at kdemail.net
Sat Jul 9 12:24:20 UTC 2005


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.



More information about the Linux-audio-dev mailing list