From 9847614871e861c216425b95a8300dba37b0f6e6 Mon Sep 17 00:00:00 2001 From: grm Date: Sun, 2 Mar 2025 13:53:54 +0200 Subject: Also improve midi and add tt for templating --- src/sound.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/sound.c') diff --git a/src/sound.c b/src/sound.c index 2b2ca12..d4b0242 100644 --- a/src/sound.c +++ b/src/sound.c @@ -101,7 +101,8 @@ init_sound(synth_t * synth, PaStreamCallback *streamCallback, const char* device deviceInfo->name); if (strcmp(device_name, "default")) { printf("Trying to use default device\n"); - init_sound(synth, streamCallback, "default"); + strcpy(synth->soundcard.name, "default"); + init_sound(synth, streamCallback, synth->soundcard.name); } return; } -- cgit v1.2.3