社区问答

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

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

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

0 投票
We are integrating wwise authoring in our python/flask based web app through waapi-client-python, and I'm trying to figure out the best way to generate the soundbanks after edits have been made. There's several issues:

1) it seems generating soundbanks through waapi is only possible via the ak.wwise.ui.commans.execute command, which needs the full-blown UI editor to be launched. Our intent was to use the lean waapi CLI host, but this is not a strict necessity
2) when we are using the above command, the waapi client's web socket times out after ~15 seconds which throws an error. The soundbank generation continues in the UI, but we have no way of knowing when it is done.
3) I considered alternatively to do the soundbank generation via the command line directly without waapi - but this scenario has the issue that the wwise cli warns that it is a bad idea to run multiple instances for the same project - and we already have a cli running permanently as waapi host for regular requests.

Any ideas for a good solution here?
分类:General Discussion | 用户: Maarten D. (100 分)

1个回答

+1 投票

1) Coming in Wwise 2019.2, we will add support for generating soundbanks through dedicated WAAPI function, in CLI and UI modes. For 2019.1, you will need to rely on ak.wwise.ui.commans.execute.

2) This is a very unfortunate issue. There must be a timeout in our python waapi client. We will create an issue on our side. If you are interested to investigate, the sources are here: https://github.com/audiokinetic/waapi-client-python

3) Yes, it is possible to run into issues when running multiple instances of wwise on the same project because there are shared resources that could get corrupted, especially during conversion and soundbank generation.

用户: Bernard R. (Audiokinetic) (35.8k 分)
Thanks for replying!

- Happy to hear that 2019.2 will have a dedicated function for this!
- In the mean time, I have found the source of the timeouts and can work around this. In the autobahn module, the wamp client transport factory has an autoping interval of 10 second & timeout of 5 seconds - see https://autobahn.readthedocs.io/en/latest/_modules/autobahn/asyncio/wamp.html . I suspect the client gets no ping reply when this command is executed, which disconnects the client. Increasing these autoping values allow me to finish long runs.
I can confirm that with a custom autobahn branch where the autoping timeouts are removed, we obtain the desired behavior.

One snag is that the full editor blocks on a popup when it detects changes on disk, after which API calls are denied until the popup is confirmed; this makes it less ideal as an API host.

Is there an ETA on 2019.2 ?
You might want to try ak.wwise.debug.enableAutomationMode if you wish to avoid any popup to show-up.

https://www.audiokinetic.com/library/edge/?source=SDK&id=ak_wwise_debug_enableautomationmode.html

ETA for 2019.2 is end of January
...