Prime
Prime

Reputation: 4251

OpenSL on Android 2.1

In examining framework options for Android native game development, I came across OpenSL ES as the native sound library of choice.

Then I found that it was added for 2.3.

Is OpenSL ES accessible at all for Android 2.1 and 2.2? Are there any other audio library options for these versions or am I going to be stuck calling the Android Java audio players from native code?

Thanks! Dragonwrenn

Upvotes: 0

Views: 930

Answers (1)

mjr
mjr

Reputation: 2113

You can manually build and link the libmedia.so into your app. You will have to build libmedia.so from the android source code for the specific version of android you are running (the library built for 2.1 will not work with 2.2). Obviously, this is going outside the standard API and is not very portable. See this question for a link to a good example of how to do this.

Upvotes: 1

Related Questions