pcm/{Traits,Dsd*}: use std::byte

This commit is contained in:
Max Kellermann
2023-03-06 18:27:16 +01:00
parent 7a1b996da9
commit 941f2ca60d
18 changed files with 95 additions and 114 deletions

View File

@@ -708,17 +708,11 @@ Interleave(std::byte *data, std::byte *end,
}
}
static void
BitReverse(uint8_t *data, std::size_t n) noexcept
{
while (n-- > 0)
*data = bit_reverse(*data);
}
static void
BitReverse(std::byte *data, std::size_t n) noexcept
{
BitReverse((uint8_t *)data, n);
while (n-- > 0)
*data = BitReverse(*data);
}
static void