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.