diff options
author | Chris Robinson <[email protected]> | 2023-09-25 19:55:06 -0700 |
---|---|---|
committer | Chris Robinson <[email protected]> | 2023-09-25 19:56:04 -0700 |
commit | 3ab2ca28f82073e0baeb25f49163f7353be4b2ca (patch) | |
tree | 75eeef2b8421a703b14c1b766f8f20cc54bebca5 | |
parent | 4f596d16cc6a25775438a16b2cdf8367b8342368 (diff) |
Constify some pointers to indicate they won't change
-rw-r--r-- | alc/backends/wasapi.cpp | 2 | ||||
-rw-r--r-- | core/converter.cpp | 2 | ||||
-rw-r--r-- | core/converter.h | 2 |
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>>; |