diff options
author | gramanas <anastasis.gramm2@gmail.com> | 2023-11-26 16:37:54 +0200 |
---|---|---|
committer | gramanas <anastasis.gramm2@gmail.com> | 2023-11-26 16:37:54 +0200 |
commit | fb31c071fe835c5ffd1f70d3558acecee2ed7f17 (patch) | |
tree | 914baaab271de13d086428634a4834a4a08a6926 /src/synth.c | |
parent | 8d17aa29baf0b33229dbdd82d8d5f6cbe3fe0240 (diff) | |
download | synth-project-fb31c071fe835c5ffd1f70d3558acecee2ed7f17.tar.gz synth-project-fb31c071fe835c5ffd1f70d3558acecee2ed7f17.tar.bz2 synth-project-fb31c071fe835c5ffd1f70d3558acecee2ed7f17.zip |
Make synth a pointer
Diffstat (limited to 'src/synth.c')
-rw-r--r-- | src/synth.c | 9 |
1 files changed, 4 insertions, 5 deletions
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; } |