Search Unity

Bug AudioClip in AssetBundle for WebGL

Discussion in 'Asset Bundles' started by jmgc92, Apr 1, 2022.

  1. jmgc92

    jmgc92

    Joined:
    Apr 3, 2016
    Posts:
    9
    Hello, I'm having a problem getting audioClips in an assetBundle to work for a WebGL build,
    i have exported the assetBundle for WebGL and im testing them in the editor.

    The error I get is the following:

    Error: Cannot create FMOD::Sound instance for clip "TRY_AGAIN_es-ES" (FMOD error: Unsupported file or audio format. )
    UnityEngine.AssetBundle:LoadAsset<UnityEngine.AudioClip> (string)

    My audio settings:

    upload_2022-4-1_15-27-11.png
     
  2. Twil75

    Twil75

    Joined:
    Aug 30, 2012
    Posts:
    22
    Me too, did you find a solution ?
     
  3. eyalfx

    eyalfx

    Joined:
    Oct 8, 2010
    Posts:
    108
    Same issue here, with all version of Unity. Did you find a workaround ?
     
  4. War_Tourist

    War_Tourist

    Joined:
    Dec 3, 2014
    Posts:
    9
    FWIW I get this error with audio files from asset bundles in the editor, but they mostly work fine in stand alone builds. Troubleshooting this I discovered if I used Windows asset bundles for the WebGL platform in the editor the audio loads fine...in the editor. Those windows asset bundles don't work for the webGL stand alone. Very weird.
     
    unity_3Vgvc20-AT9hew likes this.