summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMarc Mutz <marc.mutz@qt.io>2022-10-20 10:30:38 +0200
committerQt Cherry-pick Bot <cherrypick_bot@qt-project.org>2022-10-20 10:49:39 +0000
commit639f9eb09ac81b5b57764ef4a6af5d4a1e71cdb9 (patch)
tree9d474e1ad67e4fc9d259906cba16b5e5d35a8cb3
parentc6ecfda25dedddc043d2f16c9b6312b83eb9360e (diff)
QAmbisonicDecoder: fix Clang 15 -Werror,-Warray-parameter
Says Clang 15: qambisonicdecoder.cpp:267:84: error: argument 'reverb' of type 'const float *[]' with mismatched bound [-Werror,-Warray-parameter] void QAmbisonicDecoder::processBufferWithReverb(const float *input[], const float *reverb[], short *output, int nSamples) ^ qambisonicdecoder_p.h:51:69: note: previously declared as 'const float *[2]' here void processBufferWithReverb(const float *input[], const float *reverb[2], short *output, int nSamples); ^ Fix by using the same array bound in the definition as was declared. Amends 0eede8f08dc06e3c46eb2ffddd765fbc37184187. Change-Id: I3bdd44ff1d3263f35bef1d01f64e285b200e9acc Reviewed-by: Paul Olav Tvete <paul.tvete@qt.io> (cherry picked from commit fdcafac08929754316a4e4eb8e14fc90dd725884) Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
-rw-r--r--src/spatialaudio/qambisonicdecoder.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/spatialaudio/qambisonicdecoder.cpp b/src/spatialaudio/qambisonicdecoder.cpp
index 44a8857e2..bf430622c 100644
--- a/src/spatialaudio/qambisonicdecoder.cpp
+++ b/src/spatialaudio/qambisonicdecoder.cpp
@@ -264,7 +264,7 @@ void QAmbisonicDecoder::processBuffer(const float *input[], short *output, int n
return processBufferWithReverb(input, reverb, output, nSamples);
}
-void QAmbisonicDecoder::processBufferWithReverb(const float *input[], const float *reverb[], short *output, int nSamples)
+void QAmbisonicDecoder::processBufferWithReverb(const float *input[], const float *reverb[2], short *output, int nSamples)
{
if (simpleDecoderFactors) {
for (int i = 0; i < nSamples; ++i) {