社区问答

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

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

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

+2 投票
Hi there,

I was wondering if anyone else has run into this problem. I've found one similar question here, but the answer that was provided was not a fix for me.

I'm working in Unity 2017.1 and the latest version of Wwise. Everything works perfectly well in the editor, the soundbanks load, and I can hear all my events posted no problem. Then after building (and copying the soundbanks over to StreamingAssets) there is no sound, no errors, and when I connect the wwise profiler I am spammed with "Sound could not find a path to an output device, will use virtual voice setting." for every event that is posted.

I've tried re-integrating Wwise several times, and this never used to happen in older versions. If anyone has run into this issue and had it resolved before I would love to know how to fix it!

Thanks.
分类:Feature Requests | 用户: Blake J. (250 分)
Same here. Works in the editor but no sound in the build. The profiler says "Sound could not find a path to an output device, will use virtual voice settings". I made sure that the AkAudioListener had a AkGameObj and that is was set as the default listener.

Don't know if this could be the cause but I'm making a Unity 2017.3 Vive game with Wwise 2017.2.1 64 bits.
Hi there Clement, I found the answer to my issue a few days ago, posted the answer below. Hope that helps! I am also building for Vive so I have a feeling we were having the same problem.

1个回答

0 投票
Solved!

Looks like the issue isn't with Wwise at all but with SteamVR or OpenVR trying to dynamically reset my machine's audio devices on launch and exit. The fix for me was to (in Unity) go into Edit>Project Settings>Script Execution Order and make sure that AKInitializer was being executed before any SteamVR or OpenVR scripts. I also disabled my "Steam Ears" script that was attached to my head object, though I'm not positive that actually did anything to help. All of my builds after that seemed to work smoothly. I also found that in the SteamVR app if I set my desired audio output and input to be set on launch and exit, I could get my old builds to produce sound when they wouldn't before. Hope this helps anyone in a similar situation!
用户: Blake J. (880 分)
Hi Blake,

I tried what you suggested and unfortunately I still have the same problem.
I also have another Vive project on the same Unity version and same Wwise version that doesn't have that issue.
I'm trying to compare them one setting at a time but to no avail so far.
Ok I found a way to get it to work.
In case someone else has a similar issue here's my setup.
I have multiple scenes that I load additively (one for the VR camera and stuff, one for gameplay and one for art).
The issue in my case was that the WwiseGlobal (AkTerminator and AkInitializer) was in the gameplay scene, with the soundbanks and sound events.
Once I moved the WwiseGlobal object in the VR camera scene (with the AkAudioListener) I got sound back in my builds.

The more you know... ¯\_(ツ)_/¯

Tiny rant: When unchecking the "Create Wwise Global game object" in the settings, you will never be able to have a game object called WwiseGlobal as it will automatically be deleted when coming back from play. If you do your own WwiseGlobal object (so one doesn't get added in every scene under the sun) you need to rename it to something like "CustomWwiseGlobal" so it can survive. This is so dumb.
...