summaryrefslogtreecommitdiffstats
path: root/src/synth.c
diff options
context:
space:
mode:
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;
}