summaryrefslogtreecommitdiff
path: root/synth.c
diff options
context:
space:
mode:
Diffstat (limited to 'synth.c')
-rw-r--r--synth.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/synth.c b/synth.c
index 05c3664..d65ba41 100644
--- a/synth.c
+++ b/synth.c
@@ -65,10 +65,10 @@ void *synth(void *arg) {
SDL_LockMutex(g_Mutex);
if (shared_data.state == 0) {
- tsf_note_off(g_TinySoundFont, shared_data.preset, shared_data.note);
+ tsf_note_off(g_TinySoundFont, args->soundfont_preset, shared_data.note);
} else {
float normalized_velocity = (float)shared_data.velocity / 127.0f;
- tsf_note_on(g_TinySoundFont, shared_data.preset, shared_data.note, normalized_velocity);
+ tsf_note_on(g_TinySoundFont, args->soundfont_preset, shared_data.note, normalized_velocity);
}
SDL_UnlockMutex(g_Mutex);