From 4d102c477052f449d0154017f4dc56ea95d85f37 Mon Sep 17 00:00:00 2001 From: Max Kellermann Date: Tue, 14 Jan 2020 22:06:41 +0100 Subject: [PATCH] pcm/Dsd2Pcm: convert parameter to `bool` --- src/pcm/Dsd2Pcm.cxx | 3 +-- src/pcm/Dsd2Pcm.hxx | 2 +- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/src/pcm/Dsd2Pcm.cxx b/src/pcm/Dsd2Pcm.cxx index 1cefbd286..afcef61e4 100644 --- a/src/pcm/Dsd2Pcm.cxx +++ b/src/pcm/Dsd2Pcm.cxx @@ -195,7 +195,7 @@ void dsd2pcm_translate(dsd2pcm_ctx *ptr, size_t samples, const unsigned char *src, ptrdiff_t src_stride, - int lsbf, + bool lsbf, float *dst, ptrdiff_t dst_stride) noexcept { unsigned ffp; @@ -204,7 +204,6 @@ dsd2pcm_translate(dsd2pcm_ctx *ptr, unsigned char* p; double acc; ffp = ptr->fifopos; - lsbf = lsbf ? 1 : 0; while (samples-- > 0) { bite1 = *src & 0xFFu; if (lsbf) bite1 = bit_reverse(bite1); diff --git a/src/pcm/Dsd2Pcm.hxx b/src/pcm/Dsd2Pcm.hxx index 8179b4b6a..04d589908 100644 --- a/src/pcm/Dsd2Pcm.hxx +++ b/src/pcm/Dsd2Pcm.hxx @@ -83,7 +83,7 @@ void dsd2pcm_translate(dsd2pcm_ctx *ctx, size_t samples, const unsigned char *src, ptrdiff_t src_stride, - int lsbitfirst, + bool lsbitfirst, float *dst, ptrdiff_t dst_stride) noexcept; #endif /* include guard DSD2PCM_H_INCLUDED */