I have audio settings something like this. To instruct the browsers that out of mp3,ogg,m4a whatever is compatible, use it.
<assets path="assets/audios" if="html5">
<sound path="gem-ping.mp3" id="gem-ping" />
</assets>
<assets path="assets/audios" if="html5">
<sound path="gem-ping.ogg" id="gem-ping" />
</assets>
<assets path="assets/audios" if="html5">
<sound path="gem-ping.m4a" id="gem-ping" />
</assets>
But the browser ( chrome, firefox) always loads m4a one. And then fails to load the audio. I also tried reversing the m4a tag above the ogg one. But no solution.
The error is like this on firefox
The buffer passed to decodeAudioData contains an unknown content type.
[lime.utils.AssetLibrary] WARNING: Could not load “assets/audios/gem-ping.m4a”
It works when I remove the m4a tag though. But then some safari and ios devices complain for not finding the desired audio format ( m4a)