O'Reilly logo

Android NDK Beginner's Guide by Sylvain Ratabouil

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Playing music files

OpenSL ES is initialized, but the only thing coming out of speakers yet is silence! So what about finding a nice piece of music (sometimes abbreviated BGM) and playing it natively with Android NDK? OpenSL ES provides the necessary stuff to read music files such as MP3s.

Note

Project DroidBlaster_Part7-1 can be used as a starting point for this part. The resulting project is provided with this book under the name DroidBlaster_Part7-2.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required