2014-09-17 11:23:59 +08:00
|
|
|
|
2020-08-12 17:00:07 +08:00
|
|
|
# common headers and sources
|
2018-05-25 09:56:19 +08:00
|
|
|
set(COCOS_AUDIO_HEADER
|
2022-01-03 11:34:58 +08:00
|
|
|
audio/alconfig.h
|
|
|
|
audio/AudioEngine.h
|
|
|
|
audio/AudioMacros.h
|
|
|
|
audio/AudioDecoderManager.h
|
|
|
|
audio/AudioDecoder.h
|
|
|
|
audio/AudioDecoderOgg.h
|
|
|
|
audio/AudioPlayer.h
|
|
|
|
audio/AudioCache.h
|
|
|
|
audio/AudioEngineImpl.h
|
2020-08-12 17:00:07 +08:00
|
|
|
)
|
|
|
|
|
|
|
|
set(COCOS_AUDIO_SRC
|
2022-01-03 11:34:58 +08:00
|
|
|
audio/AudioEngine.cpp
|
|
|
|
audio/AudioDecoderManager.cpp
|
|
|
|
audio/AudioDecoder.cpp
|
|
|
|
audio/AudioDecoderOgg.cpp
|
|
|
|
audio/AudioPlayer.cpp
|
|
|
|
audio/AudioCache.cpp
|
2020-08-12 17:00:07 +08:00
|
|
|
)
|
2020-08-12 18:53:33 +08:00
|
|
|
|
|
|
|
# stupid, clang always compie .mm as objc/cpp mix obj
|
2020-09-25 11:07:56 +08:00
|
|
|
if(ANDROID OR LINUX)
|
2020-08-12 18:53:33 +08:00
|
|
|
set(COCOS_AUDIO_SRC ${COCOS_AUDIO_SRC}
|
2022-01-03 11:34:58 +08:00
|
|
|
audio/linux-link.cpp
|
2020-08-12 18:53:33 +08:00
|
|
|
)
|
|
|
|
else()
|
|
|
|
set(COCOS_AUDIO_SRC ${COCOS_AUDIO_SRC}
|
2022-01-03 11:34:58 +08:00
|
|
|
audio/AudioEngineImpl.mm
|
2020-08-12 18:53:33 +08:00
|
|
|
)
|
|
|
|
endif()
|
2020-08-12 17:00:07 +08:00
|
|
|
|
|
|
|
# Apple, we use system audio decoder
|
|
|
|
if(APPLE)
|
|
|
|
set(COCOS_AUDIO_HEADER ${COCOS_AUDIO_HEADER}
|
2022-01-03 11:34:58 +08:00
|
|
|
audio/AudioDecoderEXT.h)
|
2020-08-12 17:00:07 +08:00
|
|
|
set(COCOS_AUDIO_SRC ${COCOS_AUDIO_SRC}
|
2022-01-03 11:34:58 +08:00
|
|
|
audio/AudioDecoderEXT.mm)
|
2020-08-12 17:00:07 +08:00
|
|
|
else()
|
|
|
|
set(COCOS_AUDIO_HEADER ${COCOS_AUDIO_HEADER}
|
2022-01-03 11:34:58 +08:00
|
|
|
audio/AudioDecoderMp3.h
|
|
|
|
audio/AudioDecoderWav.h
|
2018-05-25 09:56:19 +08:00
|
|
|
)
|
2020-08-12 17:00:07 +08:00
|
|
|
set(COCOS_AUDIO_SRC ${COCOS_AUDIO_SRC}
|
2022-01-03 11:34:58 +08:00
|
|
|
audio/AudioDecoderMp3.cpp
|
|
|
|
audio/AudioDecoderWav.cpp
|
2020-08-12 17:00:07 +08:00
|
|
|
)
|
|
|
|
endif()
|