社区问答

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

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

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

+1 投票

Hi,

I'm trying to use the PrepareEvent calls to load individual sounds when needed to avoid making hundreds of tiny SoundBanks.  At this point I'm fairly certain I'm handling the API calls correctly, as the Wwise profiler shows that it is trying to load the correct file, but it fails with a "Cannot open file" error.  I understand that to use PrepareEvent, the media needs to be excluded from the banks that have the metadata. The information on how to do this in the documentation is a bit scattered around, so please let me know if I missed something.

-I allocated a 16MB (more than enough for this one file I'm testing with) pool for prepared events

-I excluded the media from said bank, and copied it to the Bank directory that is included in the game.

-I (just in case) set the audiosrc path to the bank directory, even though i don't think that was necessary

-I loaded the bank with the relevant metadata successfully.  I've tried using both LoadBank and PrepareBank(Structure_Only)

-I called PrepareEvent with an array of 2 events, "ambience_bathroom_play" and "ambience_bathroom_stop". 

-Wwise fails this claiming "Cannot open file <fileID>"

-The .wem file it is looking for is sitting in the banks folder along with the parent bank I loaded earlier

-The xml doc shows this fileID corresponds to ambience_bathroom.wav, so it is looking for the correct media

Is there another step I may have missed.  I've read through all the relevant material on Preparing Events and saw nothing about how to specify where Wwise should be looking for the loose media, but everything looks like it is where it should be.

Thanks

分类:General Discussion | 用户: Miles F. (250 分)

2 个回答

0 投票
This problem still exists now
用户: Kang C. (150 分)
0 投票
我也遇到了这个报错,是不是原来有同名的bank.asset,我删除了原有的同名bank.asset后,重新生成就不再报错了
用户: 同学 (140 分)
...