Skip to content Skip to sidebar Skip to footer

Recommended Android Music Format - Mp3, Ogg Or Other?

I've been asked which format I need the music for my project in and, looking through the documentation, it seems that the Android platform offers a good choice. Audio is certainly

Solution 1:

Ogg is the "free" choice, of course, and you are using Android. ;)

I'm not aware of any really significant differences in performance for decoding Ogg and Mp3 equivalent audio.

Mp3 might be the better choice if you intend to use your software on several platforms. The implementation would probably be more consistent than Ogg.

Solution 2:

Android 2.3 and up uses OpenSL ES API, which has great support for MP3. All previous versions and bugs and difficulties with audio here and there. I would still go with MP3 for earlier API versions. Ogg would be a pain to implement. In fact, before Android 2.3 API (version 9, I believe), there were lots of complaints about developing any kind of audio applications for Android.

CORRECTION Android does have .ogg compatibility starting with API version 8.

Solution 3:

SoundPool is known to have problems with MP3 files. I prefer using OGG files.

Solution 4:

why not use .wav files :D

You can have it in a non encoded format, that you can play on the AudioTrack without any need for implementation of a decoder. I've made a music player, with several equalization effect where i use .wav files for playback.

Post a Comment for "Recommended Android Music Format - Mp3, Ogg Or Other?"