From fb31c071fe835c5ffd1f70d3558acecee2ed7f17 Mon Sep 17 00:00:00 2001 From: gramanas Date: Sun, 26 Nov 2023 16:37:54 +0200 Subject: Make synth a pointer --- src/synth_engine.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/synth_engine.h') diff --git a/src/synth_engine.h b/src/synth_engine.h index d01331f..34f90b2 100644 --- a/src/synth_engine.h +++ b/src/synth_engine.h @@ -94,7 +94,7 @@ typedef struct { int octave; int delay; - float del[SAMPLE_RATE * 10]; + float * del; int deli; float del_time; float del_feedback; @@ -119,7 +119,7 @@ typedef struct { osc_t * osctri; } synth_t; -void init_synth(synth_t * synth); +synth_t * init_synth(); void free_synth(synth_t * synth); #endif /* SYNTH_ENGINE_H */ -- cgit v1.2.3