社区问答

欢迎来到 Audiokinetic 社区问答论坛。在此,Wwise 和 Strata 用户可互帮互助。如需我们团队直接提供协助,请前往技术支持申请单页面。若要报告问题,请在 Audiokinetic Launcher 中选择“报告错误”选项(注意,问答论坛并不会接收错误报告)。我们内部设有专门的错误报告系统,会有专人查看报告并设法解决问题。

要想尽快得到满意的解答,请在提问时注意以下几点:

  • 描述尽量具体:比如,想达到什么样的目的,或者具体哪里有问题。
  • 包含关键细节:比如,Wwise 和游戏引擎版本以及所用操作系统等等。
  • 阐明所做努力:阐明自己为了排除故障都采取了哪些措施。
  • 聚焦问题本身:聚焦于问题本身的相关技术细节,以便别人可以快速找到解决方案。

0 投票

Hi Everyone,

I'm currently trying to build a WebGL version of my Unity game with Wwise integration, and I’ve hit a roadblock with the Wwise Addressables workflow.


Setup:

  • Unity version: 2023.2.20f1

  • Wwise version: 2024.3.8749

  • Target platform: WebGL

  • Wwise Addressables package: Installed


Steps I followed:

  1. Integrated Wwise into the Unity project.

  2. Installed the Wwise Addressables package.

  3. Created the path: Assets/WwiseData/Banks

  4. Set the SoundBank output path in Wwise to: WwiseData/Banks

  5. Enabled "Generate Metadata Files: XML" in Wwise Project Settings.

  6. Generated SoundBanks for the Web platform.

  7. Verified that the .bnk files are generated under Assets/WwiseData/Banks/Web.


Problem:

  • SoundbanksInfo.xml is not generated.

  • As a result, Unity logs this error:

    Could not parse SoundbanksInfo.xml for Web. Check Assets/WwiseData/Banks/Web/SoundbanksInfo.xml for possible corruption.
    
  • I tried creating the SoundbanksInfo.xml file manually, but it’s rejected by the Wwise Addressables system.


What I need help with:

  • Is this a known issue with the 2024.3 Wwise version and WebGL?

  • Are there any extra steps required to ensure that SoundbanksInfo.xml is generated?

  • Am I missing a required config in the project or SoundBank settings?

This is currently blocking me from finishing the WebGL deployment — everything else appears to be wired correctly, and the only missing piece is that metadata file.

Any help would be greatly appreciated!

Thanks in advance,
Noam

分类:General Discussion | 用户: Noam Hoze (100 分)

1个回答

0 投票

Hi Noam,

In Wwise, go to Project -> Project Settings. In the SoundBanks tab, in the Metadata Files option group, try enabling these two options:

  • Generate All Banks Metadata File
  • Generate XML Metadata
Save and generate banks again. This combination should produce SoundBanksInfo.xml at the root of your SoundBanks path for all selected platforms.
用户: Philippe M. (580 分)
Thanks for the help, Philippe! That actually solved it — the `SoundbanksInfo.xml` is now being created properly and the groups are created automatically.

(Side note: using the **Wwise Picker > Generate SoundBanks** in Unity *didn't* generate the `SoundbanksInfo.xml` file for me. I had to do it from the Wwise Authoring app directly.)

Now I’ve hit another issue: while the addressable groups are set up and the banks appear correctly in the list, there’s an error during build:

```
error CS0266: Cannot implicitly convert type 'object' to 'AK.Wwise.Unity.WwiseAddressables.WwiseSoundBankAsset'. An explicit conversion exists (are you missing a cast?)
```

It seems like the AddressableBankManager is trying to access a sound bank as an object and fails to cast it to the correct type.
...