I'm having some trouble with this, and I've been for about two months looking for a solution but nothing really worked.
I'm working on an iOS game and, while everything else is working just fine, I can't get .mp3s to loop properly.
The framework the game's using is NME, which is using AVAudioPlayer to play "musics" and OpenAL to play "sounds". AVAudioPlayer is known to have this problem (
http://gamua.com/blog/2012/05/gapless-mp3-audio-on-ios/,
http://stackoverflow.com/questions/13889948/looping-avaudioplayer-w-o-gap), the .mp3 themselves loop perfectly but the library always adds a gap when looping. OpenAL *doesn't* have gap problems, but it crashes on older devices because it loads the .mp3 into memory instead of streaming them, which becomes a problem when you want to playback something that isn't a sfx.
"Why don't you set OpenAL to stream, then?". Well, an another problem is that I'm not really an iOS programmer. I did the game in a game development toolset and exported the project to a .xcodeproject file. At max I can rewrite some strings and change some files, but that's about it.
So I need help either to:
-Make OpenAL to stream instead of loading into memory.
-Implement an gap-less library like the one I linked above.
-(or do anything else to *not* have the gap?)
I can give my Xcode project in private to someone who knows Objective-C and/or NME (which uses Haxe as its programming language). If you are an iOS developer, how did you managed to solve this situation?
Thanks in advance, if more details are needed I could try to give them.