audio on android - will android play aif formats

The place to discuss anything and everything about running your LiveCode on Android

Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller, robinmiller

Post Reply
Coffee1633
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 219
Joined: Mon Dec 05, 2011 5:35 pm

audio on android - will android play aif formats

Post by Coffee1633 » Sun Feb 15, 2015 11:11 am

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

jacque
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 7389
Joined: Sat Apr 08, 2006 8:31 pm
Contact:

Re: audio on android - will android play aif formats

Post by jacque » Mon Feb 16, 2015 3:04 am

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.
Jacqueline Landman Gay | jacque at hyperactivesw dot com
HyperActive Software | http://www.hyperactivesw.com

Coffee1633
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 219
Joined: Mon Dec 05, 2011 5:35 pm

Re: audio on android - will android play aif formats

Post by Coffee1633 » Mon Feb 16, 2015 5:35 am

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.

Post Reply