Best Audio Format To Support BOTH Android/iOS Devices?

Hi,

Working on a small Pong game for Google Android and Apple iOS mobile devices.

Little confused about which audio file format to use to support both above platforms.

WAV seems to be the recommended format over MP3, but WAV is about 3 times larger than MP3.

Was hoping to have about 4-5 music songs in the game, but one average WAV music file is about 10MB?

Our audio guy has “GoldWave” on his development computer which can do just about anything.

Any help would be appreciated, thanks!

JeZxLee

Hi @JeZxLee,

Please see here for which formats are supported on each platform:

https://docs.coronalabs.com/guide/media/audioSystem/index.html#audio-formats

MP3 is still a safe bet, but you should read the “Format Notes” in that section… in particular, if you plan to loop the music tracks, you’ll probably get non-perfect end looping because the MP3 format tends to clip and slightly corrupt the tips of the file.

Brent

Hi,

Thanks for the reply…

We saw that page about Corona SDK and audio format support on each mobile platform…

We really want to use MP3 but are concerned about problems with looping music tracks.

Is there any work-around for the above MP3 music issue?

What if we only play the MP3 once then detect for finish and play again one more time and keep repeating that?

Thanks!

JeZxLee

This from here… https://en.wikipedia.org/wiki/MP3

The basic MP3 decoding and encoding technology is patent-free in the European Union, all patents having expired there by 2012 at the latest. In the United States, the technology will be substantially patent-free on 31 December 2017 (see below). The majority of MP3 patents expired in the US between 2007 and 2015. In the past, many organizations have claimed ownership of patents related to MP3 decoding or encoding. These claims led to a number of legal threats and actions from a variety of sources. As a result, uncertainty about which patents must be licensed in order to create MP3 products without committing patent infringement in countries that allow software patents was a common feature of the early stages of adoption of the technology.

@JeZxLee After some searching, I found an article that pointed me to a utility that at least improves the loop-ability of mp3s. It works well enough for our purposes.

The utility is called mp3loops.

https://www.compuphase.com/mp3/mp3loops.htm

You will also need an mp3 encoder installed. I simply took the LAME DLL (lame_enc.dll) from this web page and placed in the same folder as mp3 loops and that did the trick.

http://manual.audacityteam.org/man/faq_installation_and_plug_ins.html#ffdown

Hi @JeZxLee,

Please see here for which formats are supported on each platform:

https://docs.coronalabs.com/guide/media/audioSystem/index.html#audio-formats

MP3 is still a safe bet, but you should read the “Format Notes” in that section… in particular, if you plan to loop the music tracks, you’ll probably get non-perfect end looping because the MP3 format tends to clip and slightly corrupt the tips of the file.

Brent

Hi,

Thanks for the reply…

We saw that page about Corona SDK and audio format support on each mobile platform…

We really want to use MP3 but are concerned about problems with looping music tracks.

Is there any work-around for the above MP3 music issue?

What if we only play the MP3 once then detect for finish and play again one more time and keep repeating that?

Thanks!

JeZxLee

This from here… https://en.wikipedia.org/wiki/MP3

The basic MP3 decoding and encoding technology is patent-free in the European Union, all patents having expired there by 2012 at the latest. In the United States, the technology will be substantially patent-free on 31 December 2017 (see below). The majority of MP3 patents expired in the US between 2007 and 2015. In the past, many organizations have claimed ownership of patents related to MP3 decoding or encoding. These claims led to a number of legal threats and actions from a variety of sources. As a result, uncertainty about which patents must be licensed in order to create MP3 products without committing patent infringement in countries that allow software patents was a common feature of the early stages of adoption of the technology.

@JeZxLee After some searching, I found an article that pointed me to a utility that at least improves the loop-ability of mp3s. It works well enough for our purposes.

The utility is called mp3loops.

https://www.compuphase.com/mp3/mp3loops.htm

You will also need an mp3 encoder installed. I simply took the LAME DLL (lame_enc.dll) from this web page and placed in the same folder as mp3 loops and that did the trick.

http://manual.audacityteam.org/man/faq_installation_and_plug_ins.html#ffdown