zynaddsubfx

ZynAddSubFX open source synthesizer
Log | Files | Refs | Submodules | LICENSE

commit 17e34687246b77e932bd1f55d85a1cd1324fb285
parent ab82f014d81d19a9602edff208abe981a6c26eb9
Author: fundamental <mark.d.mccurry@gmail.com>
Date:   Thu, 24 Nov 2022 10:27:56 -0500

Change ALSA device default to 'default' from hw:0

Fix #211

Diffstat:
Msrc/Nio/AlsaEngine.cpp | 5++++-
1 file changed, 4 insertions(+), 1 deletion(-)

diff --git a/src/Nio/AlsaEngine.cpp b/src/Nio/AlsaEngine.cpp @@ -318,7 +318,7 @@ bool AlsaEngine::openAudio() const char *device = getenv("ALSA_DEVICE"); if(device == 0) - device = "hw:0"; + device = "default"; rc = snd_pcm_open(&audio.handle, device, SND_PCM_STREAM_PLAYBACK, 0); @@ -326,6 +326,9 @@ bool AlsaEngine::openAudio() fprintf(stderr, "unable to open pcm device: %s\n", snd_strerror(rc)); + fprintf(stderr, + "If your device isn't '%s', use the ALSA_DEVICE\n", device); + fprintf(stderr, "environmental variable to choose another\n"); return false; }