From 6adb644e17d32ad5784653208f2769d4e09b4699 Mon Sep 17 00:00:00 2001 From: DL1YCF Date: Tue, 18 May 2021 15:44:55 +0200 Subject: [PATCH] Optionally use ALSA audio module for Linux --- Makefile | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/Makefile b/Makefile index 7e5f700..0def5bd 100644 --- a/Makefile +++ b/Makefile @@ -49,9 +49,8 @@ STEMLAB_DISCOVERY=STEMLAB_DISCOVERY_NOAVAHI # very early code not included yet #SERVER_INCLUDE=SERVER -# -# specify audio module. MacOS always uses PORTAUDIO, but Linux can use PULSEAUDIO (default), PORTAUDIO, or ALSA -#AUDIO_MODULE=PULSEAUDIO +# uncomment to get ALSA audio module on Linux +#AUDIO_MODULE=ALSA CFLAGS?= -O -Wno-deprecated-declarations PKG_CONFIG = pkg-config @@ -196,10 +195,12 @@ ifeq ($(UNAME_S), Darwin) endif # -# default audio for LINUX is PULSEAUDIO +# default audio for LINUX is PULSEAUDIO but we can also use ALSA # ifeq ($(UNAME_S), Linux) - ifeq ($(AUDIO_MODULE) ,) + ifeq ($(AUDIO_MODULE) , ALSA) + AUDIO_MODULE=ALSA + else AUDIO_MODULE=PULSEAUDIO endif endif -- 2.45.2