blob: 508948d3907785b55b4c11db20c9c8330cb46f60 [file] [log] [blame]
Benny Prijonod9627842007-04-18 09:24:31 +00001# @configure_input@
2
3# Define the desired sound device backend
4# Valid values are:
5# - pa_unix: PortAudio on Unix (OSS or ALSA)
6# - pa_darwinos: PortAudio on MacOSX (CoreAudio)
7# - pa_old_darwinos: PortAudio on MacOSX (old CoreAudio, for OSX 10.2)
8# - pa_win32: PortAudio on Win32 (WMME)
9#
10# There are other values below, but these are handled by PJMEDIA's Makefile
11# - ds: Win32 DirectSound (dsound.c)
12# - null: Null sound device (nullsound.c)
13AC_PJMEDIA_SND=pa_unix
14
15# For Unix, specify if ALSA should be supported
16AC_PA_USE_ALSA=0
17
18#
19# PortAudio on Unix
20#
21ifeq ($(AC_PJMEDIA_SND),pa_unix)
22# Host APIs and utils
23export PORTAUDIO_OBJS += pa_unix_hostapis.o pa_unix_util.o
24
25# Include ALSA?
26ifeq ($(AC_PA_USE_ALSA),1)
27export CFLAGS += -DPA_USE_ALSA=1
28export PORTAUDIO_OBJS += pa_linux_alsa.o
29endif
30
31export CFLAGS += -DPA_USE_OSS=1 -DHAVE_SYS_SOUNDCARD_H
32export PORTAUDIO_OBJS += pa_unix_oss.o
33endif
34