summaryrefslogtreecommitdiffstats
path: root/src/synth.c
diff options
context:
space:
mode:
authorgramanas <anastasis.gramm2@gmail.com>2023-11-26 16:37:54 +0200
committergramanas <anastasis.gramm2@gmail.com>2023-11-26 16:37:54 +0200
commitfb31c071fe835c5ffd1f70d3558acecee2ed7f17 (patch)
tree914baaab271de13d086428634a4834a4a08a6926 /src/synth.c
parent8d17aa29baf0b33229dbdd82d8d5f6cbe3fe0240 (diff)
downloadsynth-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.c9
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;
}