Best sound format to use for Android apps?

Monkey Targets Forums/Android/Best sound format to use for Android apps?

silentshark(Posted 2015) [#1]
I have always used ogg files for Android apps found sounds and music tracks.

I did read somewhere that aac files might be a good option to give reduced file sizes with good quality.

What are others using for Android sounds?


therevills(Posted 2015) [#2]
I normally use OGG... does Mojo even support AAC?


hub(Posted 2015) [#3]
ogg and mp3


silentshark(Posted 2015) [#4]
I've always used ogg, too, without problems. So I'm sticking with that for now.

But the help docs do indicate the following formats are ok for Android with Monkey - wav, ogg, mp3, m4a. I think m4a is AAC (or something).

Thanks anyway guys - I was just looking for opportunities to crunch down our app sizes further..


therevills(Posted 2015) [#5]
I think m4a is AAC (or something).

I've never looked into it until now and I think you are right.

On the doco linked to this site (http://www.monkey-x.com/docs/html/Modules_mojo.audio.html), it states this:
Also, not all audio formats are supported by all targets:

wav : glfw, android, ios, xna (sounds)

mp3 : flash, android, ios, xna (music)

m4a : flash, android (music), ios

wma : xna (music)

ogg : android


Does it mean Mark only recommends using m4a when using the PlayMusic command?


silentshark(Posted 2015) [#6]
possibly, but this link talks about m4a being supported for LoadSound (and thus, I guess, PlaySound)?

http://www.monkey-x.com/docs/html/Programming_File%20formats.html

Anyhow, sticking ogg for now as it seems to work good. But if AAC can squeeze more size out of my APK's, then it might be worth considering.