Tristan Matthews | 0a329cc | 2013-07-17 13:20:14 -0400 | [diff] [blame] | 1 | # @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) |
| 13 | AC_PJMEDIA_SND=pa_unix |
| 14 | |
| 15 | # For Unix, specify if ALSA should be supported |
| 16 | AC_PA_USE_ALSA=0 |
| 17 | |
| 18 | # |
| 19 | # PortAudio on Unix |
| 20 | # |
| 21 | ifeq ($(AC_PJMEDIA_SND),pa_unix) |
| 22 | # Host APIs and utils |
| 23 | export PORTAUDIO_OBJS += pa_unix_hostapis.o pa_unix_util.o |
| 24 | |
| 25 | # Include ALSA? |
| 26 | ifeq ($(AC_PA_USE_ALSA),1) |
| 27 | export CFLAGS += -DPA_USE_ALSA=1 |
| 28 | export PORTAUDIO_OBJS += pa_linux_alsa.o |
| 29 | endif |
| 30 | |
| 31 | export CFLAGS += -DPA_USE_OSS=1 -DHAVE_SYS_SOUNDCARD_H |
| 32 | export PORTAUDIO_OBJS += pa_unix_oss.o |
| 33 | endif |
| 34 | |