From 0ef2df5d10d58671a65b9432b735d3055ee0d0f1 Mon Sep 17 00:00:00 2001 From: c vw Date: Mon, 7 Sep 2020 19:35:49 +0200 Subject: [PATCH] Offer option to use PORTAUDIO (instead of plain ALSA) for audio --- Makefile | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) diff --git a/Makefile b/Makefile index fe69b75..630069c 100644 --- a/Makefile +++ b/Makefile @@ -32,8 +32,12 @@ PURESIGNAL_INCLUDE=PURESIGNAL # uncomment the line below for various debug facilities #DEBUG_OPTION=-D DEBUG +# uncomment the line below for GPIO PTT input #PTT_INCLUDE=PTT +# Choose "PORTAUDIO" or "ALSA" for the audio system +AUDIO_MODULE=PORTAUDIO + # very early code not included yet #SERVER_INCLUDE=SERVER @@ -169,13 +173,18 @@ endif GTKINCLUDES=`pkg-config --cflags gtk+-3.0` GTKLIBS=`pkg-config --libs gtk+-3.0` +ifeq ($(AUDIO_MODULE), PORTAUDIO) +AUDIO_OPTIONS=-DPORTAUDIO +AUDIO_LIBS=-lportaudio +else +AUDIO_OPTIONS= AUDIO_LIBS=-lasound -#AUDIO_LIBS=-lsoundio +endif CFLAGS= -g -Wno-deprecated-declarations -O3 OPTIONS=$(MIDI_OPTIONS) $(PURESIGNAL_OPTIONS) $(REMOTE_OPTIONS) $(USBOZY_OPTIONS) \ $(GPIO_OPTIONS) $(SOAPYSDR_OPTIONS) $(LOCALCW_OPTIONS) \ - $(STEMLAB_OPTIONS) \ + $(STEMLAB_OPTIONS) $(AUDIO_OPTIONS) \ $(PTT_OPTIONS) \ $(SERVER_OPTIONS) \ -D GIT_DATE='"$(GIT_DATE)"' -D GIT_VERSION='"$(GIT_VERSION)"' $(DEBUG_OPTION) -- 2.45.2