]> git.rkrishnan.org Git - pihpsdr.git/commitdiff
Offer option to use PORTAUDIO (instead of plain ALSA) for audio
authorc vw <dl1ycf@darc.de>
Mon, 7 Sep 2020 17:35:49 +0000 (19:35 +0200)
committerc vw <dl1ycf@darc.de>
Mon, 7 Sep 2020 17:35:49 +0000 (19:35 +0200)
Makefile

index fe69b75b25f709e758548fdc44419dd50d2088e0..630069ca00b7fb074c457db767e2d702453b720a 100644 (file)
--- 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)