Skip to content

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

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

Loads audio samples into a floating-point buffer.

Template parameters
Tin Input sample type.
Parameters
out Destination buffer.
in Source buffer.
size Number of samples.
swap_bytes Whether to swap bytes.

Defined at audio/data.hpp:130