1
0
Fork 0
mirror of https://github.com/juce-framework/JUCE.git synced 2026-01-10 23:44:24 +00:00

AudioIODeviceCallback, AudioBuffer, AudioFormatReader: Use const T* const* for multi-channel data

This commit is contained in:
attila 2022-09-13 17:41:41 +02:00 committed by Attila Szarvas
parent 37d57810f2
commit f075de78fa
44 changed files with 150 additions and 92 deletions

View file

@ -62,7 +62,7 @@ class ConvolutionTest : public UnitTest
AudioBuffer<float> result (2, length);
result.clear();
auto** channels = result.getArrayOfWritePointers();
auto* const* channels = result.getArrayOfWritePointers();
std::for_each (channels, channels + result.getNumChannels(), [length] (auto* channel)
{
std::fill (channel, channel + length, 1.0f);