diff options
author | nyorain <[email protected]> | 2019-12-03 20:45:37 +0100 |
---|---|---|
committer | Paul Adenot <[email protected]> | 2020-10-28 16:55:14 +0000 |
commit | b3e3e2af0a3c75a8c9736aaca5dc45c1d2741be0 (patch) | |
tree | a9d03b381cd21cd30a2bb85766fa8ec491b7a9e7 /CMakeLists.txt | |
parent | 1d66483ad2b93f0e00e175f9480c771af90003a7 (diff) | |
download | cubeb-b3e3e2af0a3c75a8c9736aaca5dc45c1d2741be0.tar.gz cubeb-b3e3e2af0a3c75a8c9736aaca5dc45c1d2741be0.zip |
Add first AAudio backend prototype
Diffstat (limited to 'CMakeLists.txt')
-rw-r--r-- | CMakeLists.txt | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt index 5aeb622..8e57855 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -211,6 +211,14 @@ if(HAVE_SYS_SOUNDCARD_H) endif() endif() +check_include_files(aaudio/AAudio.h USE_AAUDIO) +if(USE_AAUDIO) + target_sources(cubeb PRIVATE + src/cubeb_aaudio.c) + target_compile_definitions(cubeb PRIVATE USE_AAUDIO) + target_link_libraries(cubeb PRIVATE pthread ${CMAKE_DL_LIBS}) +endif() + check_include_files(android/log.h USE_AUDIOTRACK) if(USE_AUDIOTRACK) target_sources(cubeb PRIVATE |