Conversion functions¶
convert
function¶
template <typename Tout, typename Tin,
typename Tout_traits = audio_sample_traits<Tout>,
typename Tin_traits = audio_sample_traits<Tin>>
void convert(Tout *out, const Tin *in, size_t size)
Converts audio samples (both formats are known at compile time)
template <typename Tout,
typename Tout_traits = audio_sample_traits<Tout>>
void convert(Tout *out, const void *in,
audio_sample_type in_type, size_t size)
Converts audio samples (input format is known at runtime)
template <typename Tin,
typename Tin_traits = audio_sample_traits<Tin>>
void convert(void *out, audio_sample_type out_type,
const Tin *in, size_t size)
Converts audio samples (output format is known at runtime)
deinterleave
function¶
template <typename Tout, typename Tin,
typename Tout_traits = audio_sample_traits<Tout>,
typename Tin_traits = audio_sample_traits<Tin>>
void deinterleave(Tout *out[], const Tin *in,
size_t channels, size_t size)
Deinterleaves and converts audio samples
template <typename Tout, univector_tag Tag1,
univector_tag Tag2, typename Tin,
univector_tag Tag3>
void deinterleave(univector2d<Tout, Tag1, Tag2> &out,
const univector<Tin, Tag3> &in)
Deinterleaves and converts audio samples
interleave
function¶
template <typename Tout, typename Tin,
typename Tout_traits = audio_sample_traits<Tout>,
typename Tin_traits = audio_sample_traits<Tin>>
void interleave(Tout *out, const Tin *in[], size_t channels,
size_t size)
Interleaves and converts audio samples
template <typename Tout, univector_tag Tag1, typename Tin,
univector_tag Tag2, univector_tag Tag3>
void interleave(univector<Tout, Tag1> &out,
const univector2d<Tin, Tag2, Tag3> &in)
Interleaves and converts audio samples
template <typename Tin, univector_tag Tag1,
univector_tag Tag2>
univector<Tin>
interleave(const univector2d<Tin, Tag1, Tag2> &in)
Interleaves and converts audio samples
Auto-generated from sources, Revision 5191a48df06ea47104ca67db19fa82058d09c20a, https://github.com/kfrlib/kfr/blob/5191a48df06ea47104ca67db19fa82058d09c20a/include/kfr/