menu
 

在 Audiokinetic 社区问答论坛上,用户可对 Wwise 和 Strata 相关问题进行提问和解答。如需从 Audiokinetic 技术支持团队获取答复,请务必使用技术支持申请单页面。

0 投票
The Wwise profiler is a very powerful tool. I've been looking for online materials related to automated profiling in Wwise but not turned up anything.

Say you have a build server that builds your game and it runs automated tests, playing through sections of the game.

Is there a way to have a process spin up an instance of Wwise, specify the target machine/config to connect to, and have it start profiling until that game instance terminates?
分类:General Discussion | 用户: Gareth M. (140 分)

1个回答

0 投票
I've realised that the Wwise integration allows me to call AK::SoundEngine::StartProfilerCapture() and AK::SoundEngine::StopProfilerCapture() which starts the profiling session and saves it to a file with the .prof suffix. This file can then be manually loaded into the Wwise profiler.

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

With a little work this gets me what I need. I can take the .prof output file path as a commandline input to my application so it can be invoked from a batch script.
用户: Gareth M. (140 分)
Another way would be to use WAAPI, which depending on your usage could be better. One example is if you would like to capture a profiling session as a file on the build machine from a game running over network, e.g., from an external device such as a mobile device, game console, etc.

You could launch the console version of Wwise in WAAPI server mode with "WwiseConsole.exe waapi-server <path to your project>". Using a WAMP client of your choice, you can then connect to the server and use the WAAPI function "ak.wwise.core.remote.connect" (ref: https://www.audiokinetic.com/en/library/edge/?source=SDK&id=ak_wwise_core_remote_connect.html). The profiler session will be saved in the project like it would when running the Wwise Authoring application.

To get started with WAAPI: https://www.audiokinetic.com/en/library/edge/?source=SDK&id=waapi.html
...