Search Unity

Problem with audio on WebGL / Web Player

Discussion in 'Linux' started by victords, Apr 11, 2017.

  1. victords

    victords

    Joined:
    Nov 20, 2015
    Posts:
    7
    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!
     
    wenderRondonia likes this.
  2. victords

    victords

    Joined:
    Nov 20, 2015
    Posts:
    7
    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 :D
    Hope this info is useful for someone else.
     
    raulprofe, sean244 and wenderRondonia like this.
  3. raulprofe

    raulprofe

    Joined:
    Jul 27, 2017
    Posts:
    6
    If I dont select the override for WebGL in some sounds, compilation fails and I get errors.