libgdx/libgdx — pull request #41 by noblemaster (2012-09-25 16:56:13+00:00)
Title: Initial version with Sound + Music

Hi guys, this is Chris - you probably don't know me :) In any case, it's not much but I spent some time to get familiar with libgdx on iOS. I created an update with support for Sound + Music. I tested it with SuperJumper and was successfully able to play the Music in the iPhone simulator.

It's far from done, but I figured I'll go ahead and post it so not several people are working on the same without knowing it.

Here are the limitations:
- no .ogg file support; works with mp3 and should also work with wav files
- no looping yet (need to register some delegates first)
- no soundIds yet for IOSound.java - needs more work but definitely doable

I am aware OpenAL was suggested. The files I checked in use AVAudioPlayer. I can implement it all using AVAudioPlayer the only drawback is there will be no .ogg support (is there some sort of converter for .ogg to WAV/MP3?). iOS only likes to play with either WAV or MP3 files.

If we agree to defer .ogg support to later I would be able to wrap this up within the next 2 weeks (or earlier). Worry about .ogg/OpenAL later? Comments?

Thanks
Chris