KFR

Conversion functions

deinterleave

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

Source:

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)
template<typename Tout, size_t Tag1, size_t Tag2, typename Tin, size_t Tag3>
void deinterleave

Deinterleaves and converts audio samples

Source:

template <typename Tout, size_t Tag1, size_t Tag2, typename Tin, size_t Tag3>
void deinterleave

interleave

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

Source:

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)
template<typename Tout, size_t Tag1, typename Tin, size_t Tag2, size_t Tag3>
void interleave

Interleaves and converts audio samples

Source:

template <typename Tout, size_t Tag1, typename Tin, size_t Tag2, size_t Tag3>
void interleave
template<typename Tin, size_t Tag1, size_t Tag2>
univector<Tin> interleave(const univector2d<Tin, Tag1, Tag2> &in)

Interleaves and converts audio samples

Source:

template <typename Tin, size_t Tag1, size_t Tag2>
univector<Tin> interleave(const univector2d<Tin, Tag1, Tag2>& in)

convert

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)

Source:

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)
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)

Source:

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)
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)

Source:

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)