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

Hello,

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: http://www.mrqwak.com/games/retroracing/).

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).

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

Top

Return to Multimedia Problems

Who is online

Users browsing this forum: No registered users and 23 guests