Page 1 of 1

audio on android - will android play aif formats

Posted: Sun Feb 15, 2015 11:11 am
by Coffee1633
Hi

I successfully built an app for iOS which works great, but when I I deploy to android it constantly crashes. This is the not the first time it has happened. Now I have to debug a hundred different issues. So in order to save a bit of time, I was hoping that someone could give me some pointers specifically with android audio.

For iOS I have sound effects in mp3 format, and bgm in compressed aif format (for looping reasons) wav tends to be too large and mp3 doesn't work well for loops because it always adds half a second of silence which give a hickup at the loop start. My bgm works fine for iOS but doesn't play at all in Android. Is that because of the aif file format or something else?
I use mobilePlaySoundOnChannel, should I be creating a new player object instead?
These android /iOS differences are driving me mad.

bob

Re: audio on android - will android play aif formats

Posted: Mon Feb 16, 2015 3:04 am
by jacque
Here are the natively supported audio formats for Android:http://developer.android.com/guide/appe ... rmats.html

Older devices may not support all of them, those are marked.

Re: audio on android - will android play aif formats

Posted: Mon Feb 16, 2015 5:35 am
by Coffee1633
Thank Jacque

I didn't see aif format listed, let alone compressed aif. I guess that answers that.
I will be switching to wav then.
thanks again.