pcm/Interleave: use std::byte

This commit is contained in:
Max Kellermann 2023-03-06 18:19:46 +01:00
parent 8f41e05a39
commit ec195acf4f
1 changed files with 4 additions and 4 deletions

View File

@ -6,8 +6,8 @@
#include <string.h>
static void
GenericPcmInterleave(uint8_t *gcc_restrict dest,
std::span<const uint8_t *const> src,
GenericPcmInterleave(std::byte *gcc_restrict dest,
std::span<const std::byte *const> src,
size_t n_frames, size_t sample_size) noexcept
{
for (size_t frame = 0; frame < n_frames; ++frame) {
@ -88,8 +88,8 @@ PcmInterleave(void *gcc_restrict dest,
break;
default:
GenericPcmInterleave((uint8_t *)dest,
{(const uint8_t *const*)src.data(), src.size()},
GenericPcmInterleave((std::byte *)dest,
{(const std::byte *const*)src.data(), src.size()},
n_frames, sample_size);
}
}