How to play music from c/c++ NDK

All your problems with Audio, Video and Images.

How to play music from c/c++ NDK

Postby Mr Qwak » Tue Aug 28, 2012 3:59 pm


I'm using the Android NDK, and have some MP3 files I'ld like to play (my App, is an OpenGL, I'm porting from iOS; iOS version here:

What's the best (least CPU intensive) way to play music on Android? Should I use MP3 or convert my music files to OGG or WAV?

Also, i'm using OpenAl to play SFX. Is that a bad option? I was also looking at OpenSL, but that seems to be Android version 9+ only (won't work on Froyo).

Mr Qwak
Posts: 2
Joined: Tue Aug 28, 2012 3:44 pm
Location: UK


Return to Multimedia Problems

Who is online

Users browsing this forum: Yahoo [Bot] and 13 guests