29 namespace Processing {
31 template<
template<
typename,
typename>
class Func,
typename... Args>
34 #define WRITING(IN_T) \
35 switch (outFormat) { \
37 Func<IN_T, sample8>::process((const IN_T*)input, (sample8*)output, args...); \
40 Func<IN_T, sample16>::process((const IN_T*)input, (sample16*)output, args...); \
43 Func<IN_T, sample32>::process((const IN_T*)input, (sample32*)output, args...); \
46 Func<IN_T, sample32f>::process((const IN_T*)input, (sample32f*)output, args...); \
void pipeline(const AudioSampleFormat inFormat, const AudioSampleFormat outFormat, const sample8 *input, sample8 *output, Args &&... args)
AudioSampleFormat
Format of audio samples.
@ Int8
signed integer, 8 bit per sample
@ Int32
signed integer, 32 bit per sample
@ Float32
floating point, 32 bit per sample
@ Int16
signed integer, 16 bit per sample