A few reallocations that could be avoided


#1

I think that the second argument (i.e avoidReallocating) of AudioBuffer::makeCopyOf() should be used to avoid unnecessary reallocations in the audio thread (when numSamples varies) in the double-float buffer conversion code of :

SynthesiserVoice::renderNextBlock (AudioBuffer<double>& outputBuffer, int startSample, int numSamples)

ProcessBufferOp::callProcess (AudioBuffer<double>& buffer, MidiBuffer& midiMessages) (in juce_AudioProcessorGraph.cpp)

AudioProcessorPlayer::audioDeviceIOCallback()


#2

I’ve pushed this change to develop, thanks!

Ed