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.c | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) (limited to 'src/synth.c') diff --git a/src/synth.c b/src/synth.c index ea4a8f7..f7ae019 100644 --- a/src/synth.c +++ b/src/synth.c @@ -42,16 +42,15 @@ int main(void) { - synth_t synth; midi_t midi; - init_synth(&synth); - init_midi(&midi, &synth); + synth_t * synth = init_synth(); + init_midi(&midi, synth); - rayrun(&synth); + rayrun(synth); terminate_midi(&midi); - free_synth(&synth); + free_synth(synth); return 0; } -- cgit v1.2.3