I’ve just updated the version of JUCE that we’re using and it has introduced some failing tests in our audio engine. This is because of the change of an array to a
AudioFormatWriter::writeFromFloatArrays in commit 31a7c62. The vector reserve will allocate.
While this function doesn’t promise to avoid allocation, it seems that it doesn’t necessarily need to. Would it be possible to change from a
std::vector to a
std::array as the data size is known in advance?