It would probably be a good idea to document this or at least make it come to the attention of the programmer some how…I’ve had this bug in my app for over a year:
juce_AudioProcessor.h
virtual void prepareToPlay (double sampleRate, int estimatedSamplesPerBlock) = 0;
juce_AudioSource.h
virtual void prepareToPlay (int samplesPerBlockExpected, double sampleRate) = 0;
In case you missed it, AudioProcessor has the arguments reversed. ARGH!!! :evil: