Skip to content

function samples_load(fbase *const *, const Tin *, size_t, size_t, bool) audio

template <typename Tin>
void samples_load(fbase* const out[], const Tin* in, size_t channels, size_t size,
                  bool swap_bytes = false) noexcept

Loads interleaved audio samples into a planar floating-point buffer.

Template parameters
Tin Input sample type.
Parameters
out Destination buffers for each channel.
in Source buffer.
channels Number of channels.
size Number of samples per channel.
swap_bytes Whether to swap bytes.

Defined at audio/data.hpp:142