guitfx/delay.h

24 lines
328 B
C

#pragma once
#include <stdint.h>
#include <stddef.h>
struct delay {
uint64_t duration;
float feedback;
float mix;
uint64_t buf_idx;
float * buf;
};
void delay_init(
struct delay * delay
);
void delay_process(
struct delay * delay,
size_t frame_size,
float const * in,
float * out
);