NDK doesn't support GNU/Linux userspace APIs other than what is required for ISO C and ISO C++ standard libraries implementation, plus Android NDK specific APIs.
Everything else from traditional GNU/Linux userspace is a matter of luck if it happens to work across devices, or updates, because it is not part of the oficial NDK APIs.
Fortunately, AOO has an option for building a stripped down version (`AOO_NET=OFF`) without internal networking, mainly for embedded devices. Then it's just pure standard C++. The downside is that you can't use the connection server.
I definitely need to test on Android and maybe I need to add some extra hooks. Thanks!
Everything else from traditional GNU/Linux userspace is a matter of luck if it happens to work across devices, or updates, because it is not part of the oficial NDK APIs.
You need to plug into OpenSL ES or AAudio, https://developer.android.com/ndk/guides/audio