Corona SDK Pro Tip of the Day #19
Music file formats

Did you know that using MP3 files is not free? While I haven't heard of any lawsuits against people who use it and don't pay, however it's nice to be on the safe side.

According to http://mp3licensing.com/royalty/games.html you have to pay at least $2,500 per game if you have more than 5000 downloads.

Use OGG and M4A file formats instead. One drawback is that you can't use one of them on both Android and iOS. You have to use OGG on Android and M4A on iOS.

Again from my app.lua.

local ext = (_M.isAndroid or _M.isSimulator) and '.ogg' or '.m4a'

local sounds = {  
    music = 'sounds/music' .. ext
}

I define file extension according to the current platform and load corresponding music file.

I have to maintain music files before building for the stores, but if you are too lazy, you can keep both version.

Indie Game Developer