;; an n channel mixer
;; cdat is an array of doubles values
;; each array element is a channels mix (between 0.0 and 1.0)
(bind-func static mixer_c
(lambda (channels:i64)
(lambda (cdat:SAMPLE* chan:i64 in:SAMPLE)
(if (< chan channels)
(* in (pref cdat chan))
0.0))))