2013-12-07 13:14:29 -07:00
|
|
|
set(SRCS AudioCommon.cpp
|
|
|
|
DPL2Decoder.cpp
|
|
|
|
Mixer.cpp
|
|
|
|
WaveFile.cpp
|
|
|
|
NullSoundStream.cpp)
|
2010-11-01 09:47:02 -06:00
|
|
|
|
2010-11-02 22:13:36 -06:00
|
|
|
set(LIBS "")
|
2010-11-01 09:47:02 -06:00
|
|
|
|
2013-02-26 12:49:00 -07:00
|
|
|
if(ANDROID)
|
2013-12-07 13:14:29 -07:00
|
|
|
set(SRCS ${SRCS} OpenSLESStream.cpp)
|
2013-02-26 12:49:00 -07:00
|
|
|
set(LIBS ${LIBS} OpenSLES)
|
|
|
|
endif(ANDROID)
|
|
|
|
|
2011-12-04 21:49:08 -07:00
|
|
|
if(ALSA_FOUND)
|
2013-12-07 13:14:29 -07:00
|
|
|
set(SRCS ${SRCS} AlsaSoundStream.cpp)
|
2011-12-04 21:49:08 -07:00
|
|
|
set(LIBS ${LIBS} ${ALSA_LIBRARIES})
|
|
|
|
endif(ALSA_FOUND)
|
|
|
|
|
|
|
|
if(AO_FOUND)
|
2013-12-07 13:14:29 -07:00
|
|
|
set(SRCS ${SRCS} AOSoundStream.cpp)
|
2011-12-04 21:49:08 -07:00
|
|
|
set(LIBS ${LIBS} ${AO_LIBRARIES})
|
|
|
|
endif(AO_FOUND)
|
|
|
|
|
|
|
|
if(OPENAL_FOUND)
|
2013-12-07 13:14:29 -07:00
|
|
|
set(SRCS ${SRCS} OpenALStream.cpp aldlist.cpp)
|
2013-01-09 09:26:12 -07:00
|
|
|
set(LIBS ${LIBS} ${OPENAL_LIBRARY} SoundTouch )
|
2011-12-04 21:49:08 -07:00
|
|
|
endif(OPENAL_FOUND)
|
|
|
|
|
|
|
|
if(PULSEAUDIO_FOUND)
|
2013-12-07 13:14:29 -07:00
|
|
|
set(SRCS ${SRCS} PulseAudioStream.cpp)
|
2011-12-04 21:49:08 -07:00
|
|
|
set(LIBS ${LIBS} ${PULSEAUDIO_LIBRARIES})
|
|
|
|
endif(PULSEAUDIO_FOUND)
|
|
|
|
|
|
|
|
if(WIN32)
|
2013-12-07 13:14:29 -07:00
|
|
|
set(SRCS ${SRCS} XAudio2Stream.cpp)
|
2015-01-03 05:17:57 -07:00
|
|
|
elseif(APPLE)
|
2013-12-07 13:14:29 -07:00
|
|
|
set(SRCS ${SRCS} CoreAudioSoundStream.cpp)
|
2010-11-01 09:47:02 -06:00
|
|
|
endif()
|
|
|
|
|
2013-10-16 22:06:34 -06:00
|
|
|
add_dolphin_library(audiocommon "${SRCS}" "${LIBS}")
|