aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--alc/backends/wasapi.cpp2
-rw-r--r--core/converter.cpp2
-rw-r--r--core/converter.h2
3 files changed, 3 insertions, 3 deletions
diff --git a/alc/backends/wasapi.cpp b/alc/backends/wasapi.cpp
index e26af7c9..7eae84c1 100644
--- a/alc/backends/wasapi.cpp
+++ b/alc/backends/wasapi.cpp
@@ -1298,7 +1298,7 @@ FORCE_ALIGN int WasapiPlayback::mixerSpatialProc()
}
const uint got{mResampler->convertPlanar(tmpbuffers.data(), &mBufferFilled,
- reinterpret_cast<void**>(buffers.data()), framesToDo-pos)};
+ reinterpret_cast<void*const*>(buffers.data()), framesToDo-pos)};
for(auto &buf : buffers)
buf += got;
pos += got;
diff --git a/core/converter.cpp b/core/converter.cpp
index dea31bd5..5b2f3e15 100644
--- a/core/converter.cpp
+++ b/core/converter.cpp
@@ -309,7 +309,7 @@ uint SampleConverter::convert(const void **src, uint *srcframes, void *dst, uint
return pos;
}
-uint SampleConverter::convertPlanar(const void **src, uint *srcframes, void **dst, uint dstframes)
+uint SampleConverter::convertPlanar(const void **src, uint *srcframes, void *const*dst, uint dstframes)
{
const uint increment{mIncrement};
uint NumSrcSamples{*srcframes};
diff --git a/core/converter.h b/core/converter.h
index d811b46b..49ca124d 100644
--- a/core/converter.h
+++ b/core/converter.h
@@ -36,7 +36,7 @@ struct SampleConverter {
SampleConverter(size_t numchans) : mChan{numchans} { }
uint convert(const void **src, uint *srcframes, void *dst, uint dstframes);
- uint convertPlanar(const void **src, uint *srcframes, void **dst, uint dstframes);
+ uint convertPlanar(const void **src, uint *srcframes, void *const*dst, uint dstframes);
uint availableOut(uint srcframes) const;
using SampleOffset = std::chrono::duration<int64_t, std::ratio<1,MixerFracOne>>;