pcm/Interleave: use std::byte
This commit is contained in:
parent
8f41e05a39
commit
ec195acf4f
@ -6,8 +6,8 @@
|
|||||||
#include <string.h>
|
#include <string.h>
|
||||||
|
|
||||||
static void
|
static void
|
||||||
GenericPcmInterleave(uint8_t *gcc_restrict dest,
|
GenericPcmInterleave(std::byte *gcc_restrict dest,
|
||||||
std::span<const uint8_t *const> src,
|
std::span<const std::byte *const> src,
|
||||||
size_t n_frames, size_t sample_size) noexcept
|
size_t n_frames, size_t sample_size) noexcept
|
||||||
{
|
{
|
||||||
for (size_t frame = 0; frame < n_frames; ++frame) {
|
for (size_t frame = 0; frame < n_frames; ++frame) {
|
||||||
@ -88,8 +88,8 @@ PcmInterleave(void *gcc_restrict dest,
|
|||||||
break;
|
break;
|
||||||
|
|
||||||
default:
|
default:
|
||||||
GenericPcmInterleave((uint8_t *)dest,
|
GenericPcmInterleave((std::byte *)dest,
|
||||||
{(const uint8_t *const*)src.data(), src.size()},
|
{(const std::byte *const*)src.data(), src.size()},
|
||||||
n_frames, sample_size);
|
n_frames, sample_size);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user