At this point, it is hard to find some working examples of 3D audio/spatialization on the Android platform that could be easily prototyped. Hence, I shared this sample application showing 3D audio rendering, using the bit old openAL4android library.
Hope it helps!
- Android SDK v26.0.0
- Android Studio v2.3.3
- Gradle Plugin v2.3.3
- Tested On:
- Android 7.0 Nougat
- Android 6.0 Marshmallow
- IMPORTANT: to make a compatible .wav file, the RIFF WAVE headers should be present on the file. Common audio/video conversion libraries tried (sox, ffmpeg) does not trivially generate the proper .wav file headers. Only Audacity for Windows 10 did the trick.
- libopenal.so and libopenalwrapper.so are compiled for 32-bits platforms (ARMEABI v7a).
- gradle.properties includes the android.useDeprecatedNdk=true option which may not be available in future versions of Android Gradle plugin.