pcm/Dsd2Pcm: convert parameter to bool
This commit is contained in:
parent
91bc41ea20
commit
4d102c4770
@ -195,7 +195,7 @@ void
|
|||||||
dsd2pcm_translate(dsd2pcm_ctx *ptr,
|
dsd2pcm_translate(dsd2pcm_ctx *ptr,
|
||||||
size_t samples,
|
size_t samples,
|
||||||
const unsigned char *src, ptrdiff_t src_stride,
|
const unsigned char *src, ptrdiff_t src_stride,
|
||||||
int lsbf,
|
bool lsbf,
|
||||||
float *dst, ptrdiff_t dst_stride) noexcept
|
float *dst, ptrdiff_t dst_stride) noexcept
|
||||||
{
|
{
|
||||||
unsigned ffp;
|
unsigned ffp;
|
||||||
@ -204,7 +204,6 @@ dsd2pcm_translate(dsd2pcm_ctx *ptr,
|
|||||||
unsigned char* p;
|
unsigned char* p;
|
||||||
double acc;
|
double acc;
|
||||||
ffp = ptr->fifopos;
|
ffp = ptr->fifopos;
|
||||||
lsbf = lsbf ? 1 : 0;
|
|
||||||
while (samples-- > 0) {
|
while (samples-- > 0) {
|
||||||
bite1 = *src & 0xFFu;
|
bite1 = *src & 0xFFu;
|
||||||
if (lsbf) bite1 = bit_reverse(bite1);
|
if (lsbf) bite1 = bit_reverse(bite1);
|
||||||
|
@ -83,7 +83,7 @@ void
|
|||||||
dsd2pcm_translate(dsd2pcm_ctx *ctx,
|
dsd2pcm_translate(dsd2pcm_ctx *ctx,
|
||||||
size_t samples,
|
size_t samples,
|
||||||
const unsigned char *src, ptrdiff_t src_stride,
|
const unsigned char *src, ptrdiff_t src_stride,
|
||||||
int lsbitfirst,
|
bool lsbitfirst,
|
||||||
float *dst, ptrdiff_t dst_stride) noexcept;
|
float *dst, ptrdiff_t dst_stride) noexcept;
|
||||||
|
|
||||||
#endif /* include guard DSD2PCM_H_INCLUDED */
|
#endif /* include guard DSD2PCM_H_INCLUDED */
|
||||||
|
Loading…
Reference in New Issue
Block a user