frac32buffer in
frac32buffer out
elements::Diffuser diffuser;
float *alloc_buffer() {
static float buffer[32768] __attribute__((section(".sdram")));
return buffer;
}
diffuser.Init(alloc_buffer());
static float buf[BUFSIZE];
int i;
for (i = 0; i < BUFSIZE; i++) {
buf[i] = q27_to_float(inlet_in[i]);
}
diffuser.Process(buf, BUFSIZE);
for (i = 0; i < BUFSIZE; i++) {
outlet_out[i] = float_to_q27(buf[i]);
}