Add support for OpenAL.

Originally committed to SVN as r1880.
This commit is contained in:
Amar Takhar 2008-03-04 00:59:02 +00:00
parent 448add536a
commit f5764fa2e4
2 changed files with 19 additions and 0 deletions

View File

@ -36,6 +36,14 @@ aegisub_LDFLAGS += @LIBPULSE_LIBS@
aegisub_LDADD += libaudio_pulseaudio.a aegisub_LDADD += libaudio_pulseaudio.a
endif endif
if HAVE_OPENAL
noinst_LIBRARIES += libaudio_openal.a
libaudio_openal_a_SOURCES = audio_player_openal.cpp
libaudio_openal_a_CFLAGS = @OPENAL_CFLAGS@
aegisub_LDFLAGS += @OPENAL_LIBS@
aegisub_LDADD += libaudio_openal.a
endif
if HAVE_FFMPEG if HAVE_FFMPEG
noinst_LIBRARIES += libaudiovideo_ffmpeg.a noinst_LIBRARIES += libaudiovideo_ffmpeg.a
libaudiovideo_ffmpeg_a_SOURCES = audio_provider_lavc.cpp lavc_file.cpp video_provider_lavc.cpp lavc_keyframes.cpp libaudiovideo_ffmpeg_a_SOURCES = audio_provider_lavc.cpp lavc_file.cpp video_provider_lavc.cpp lavc_keyframes.cpp

View File

@ -155,6 +155,16 @@ if test "$with_pulseaudio" == no; then
AC_DEFINE(WITH_PULSEAUDIO, 1, [Enable PulseAudio support]) AC_DEFINE(WITH_PULSEAUDIO, 1, [Enable PulseAudio support])
fi fi
AC_ARG_WITH(openal,[ --without-openal build without OpenAL audio provider.
(default: auto)], openal_disabled="(disabled)")
if test "x$with_openal" != xno; then
PKG_CHECK_MODULES(OPENAL, libpulse >= 0.0.8, [found_audio=yes; with_openal=yes], [with_openal=no])
fi
AM_CONDITIONAL([HAVE_OPENAL], [test "$with_openal" != "no"])
if test "$with_openal" == no; then
AC_DEFINE(WITH_OPENAL, 1, [Enable OpenAL support])
fi
################# #################
# Video Providers # Video Providers
@ -526,6 +536,7 @@ Scripting Engines:
Audio Providers: Audio Providers:
ALSA: $with_alsa $alsa_disabled ALSA: $with_alsa $alsa_disabled
OpenAL: $with_openal $openal_disabled
PortAudio: $with_portaudio $portaudio_disabled PortAudio: $with_portaudio $portaudio_disabled
PulseAudio: $with_pulseaudio $pulseaudio_disabled PulseAudio: $with_pulseaudio $pulseaudio_disabled