guitfx/delay.h

25 lines
328 B
C
Raw Normal View History

2024-12-08 15:57:19 +01:00
#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
);