ProcessBlock block sizes


#1

Can I assume that the input and output AudioSampleBuffers are the same size (same number of samples)? What is the relation between the ‘samplesPerBlock’ parameter of the PrepareToPlay method and the size of the buffers sent to ProcessBlock?


#2

Yes, the two buffers will be the same size. The value passed to prepareToPlay is the predicted average size - just really there to help you pre-allocate buffers, but nothing is guaranteed about it.


#3

(actually, all of these questions are already explained in the comments for the process method…)


#4

Sorry about that. I did RTFM, but the manual doesn’t have the plugin stuff in it. I’ve been using the compiled help for Juce and the demo app for reference and apparently neglected to look at the audio header files. Is there a compiled help file for the audio stuff too?


#5

Good point - I’ll see if I can add the plugin stuff to my doxygen script…


#6