OpenAL is a cross-platform audio API. It is designed for efficient rendering of multichannel three-dimensional positional audio and is widely used on desktop platforms in numerous gaming engines and applications. Many mobile platforms provide different audio APIs, for example, OpenSL ES is a strong player. However, when portability is at stake, we should select an API capable of running on all platforms required. OpenAL is implemented on Windows, Linux, OS X, Android, iOS, BlackBerry 10 and on many other platforms. On all these operating systems, except Windows and Android, OpenAL is a first person citizen with all libraries available in the system. On Windows, there is an implementation from Creative. On Android, we need to build the library ourself. We will use the Martins Mozeiko port http://pielot.org/2010/12/14/openal-on-android/. This library can be compiled for Android with minor tweaking of Android.mk
and Application.mk
files. Here is the Android.mk
file:
TARGET_PLATFORM :...