Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Tutorials for OpenSL ES for Android

I've been trying to look into using the OpenSL ES library that is available for doing native audio with android 2.3, but it appears that the header files and the 600 page pdf of the spec are the only available documentation.

Where should I be looking for examples, tutorials, or a brief overview of the capabilities?

like image 400
mjr Avatar asked Jul 20 '11 13:07

mjr


2 Answers

There's an example app that comes with the NDK called NativeAudio. It has examples of nearly anything you would ever want to implement: effects, streaming, synthesis, etc. If you look at its code, you'll get a good head start.

like image 170
Phonon Avatar answered Sep 18 '22 08:09

Phonon


You could also check victor lazzarini's audio programming blog, it has an android section: http://audioprograming.wordpress.com/category/android/

There you will find working examples, they were extremely useful to me to get started with openSL and can be used as a base to develop audio applications with ndk.

And also, don't overlook the specifications document, it's not so long after all, the first part is no more than fifty pages and gives you the needed perspective to understand how everything works, the rest is for reference use. Be careful that some things in android openSL implementation differ from the specifications: see in your-ndk-directory/docs/opensles/index.html for more informations about this.

like image 40
athos Avatar answered Sep 21 '22 08:09

athos