Problem with audio on WebGL / Web Player

Hi,

I’m not being able to import any audio format when using WebGL platform. By the documentation, only AAC format would be supported, but when using this format, Unity imports the file without errors, but doesn’t recognize the asset as an audio clip.
In the screenshot below you can see the result of importing a m4a file:

Maybe the problem is the file I’m using, I don’t know… I have used Audacity to export from an MP3 file. I have tested MP3 and OGG as well but these generate errors (as expected, I guess).

System details:
Linux Mint 18 (Sarah)
Unity 5.6.0xb8

Anybody facing similar problems?
Thanks in advance!

1 Like

Ok, I figured out that I didn’t need to manually convert the file to m4a/aac, it seems the correct way was to configure the WebGL settings in the mp3 asset (select “override for WebGL”). Sorry guys :smile:
Hope this info is useful for someone else.

3 Likes

If I dont select the override for WebGL in some sounds, compilation fails and I get errors.