diff options
Diffstat (limited to 'src/sound.c')
-rw-r--r-- | src/sound.c | 3 |
1 files changed, 2 insertions, 1 deletions
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; } |