aboutsummaryrefslogtreecommitdiffstats
path: root/alc/backends
diff options
context:
space:
mode:
authorChris Robinson <[email protected]>2024-01-03 19:10:15 -0800
committerChris Robinson <[email protected]>2024-01-03 19:10:15 -0800
commit8c80f29e242dee18cb914d3cdb396bd96e935547 (patch)
tree1ec189802b81060295edcffa5b77976a6373b9d5 /alc/backends
parent18349e1da2c79d0f41c8c4f12ccd065f91618a6f (diff)
Avoid some const_casts
Diffstat (limited to 'alc/backends')
-rw-r--r--alc/backends/jack.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/alc/backends/jack.cpp b/alc/backends/jack.cpp
index 1e5c17ad..529bb9fe 100644
--- a/alc/backends/jack.cpp
+++ b/alc/backends/jack.cpp
@@ -371,7 +371,7 @@ int JackPlayback::process(jack_nframes_t numframes) noexcept
jack_nframes_t todo{minu(numframes, static_cast<uint>(data.first.len))};
auto write_first = [&data,numchans,todo](float *outbuf) -> float*
{
- const float *RESTRICT in = reinterpret_cast<float*>(data.first.buf);
+ const auto *RESTRICT in = reinterpret_cast<const float*>(data.first.buf);
auto deinterlace_input = [&in,numchans]() noexcept -> float
{
float ret{*in};
@@ -390,7 +390,7 @@ int JackPlayback::process(jack_nframes_t numframes) noexcept
{
auto write_second = [&data,numchans,todo](float *outbuf) -> float*
{
- const float *RESTRICT in = reinterpret_cast<float*>(data.second.buf);
+ const auto *RESTRICT in = reinterpret_cast<const float*>(data.second.buf);
auto deinterlace_input = [&in,numchans]() noexcept -> float
{
float ret{*in};