社区问答

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

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

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

0 投票

Hello! I'm working on a sound replacement for the Unreal ShooterGame. I'm trying to do as much as possible in C++ (Hopefully everything) and I'm using UE4.10.0 as well as the corresponding Wwise auth tool, integration and XCode (I'm on El capitan and the software versions I'm using are correct and compatible as far as I know).

I've been informed that in this case, the Wwise soundengine modules are already initialized in the code (Soundengine, music engine, comms, ... ). Yesterday I managed to import the Init.bnk and a Test.bnk generated in Wwise to UE4's content browser, I created an event with same name as an event in Wwise, built banks and through blueprint I could play a pickup sound. Those banks already include header files because I plan on loading/unloading banks with IDs.

The problem is that when I try to load/unload banks in C++, I include the generated header files for the IDs and apparently the code can't find that header file. (#include "Wwise_IDs.h")

I already accessed the build settings, set custom header file search paths and that didn't seem to help. Can anyone shed some light on this subject? Thanks a lot!

 

分类:General Discussion | 用户: - (240 分)
I figured it out. Obviously it's not enough to write #include "Wwise_IDs.h"

I added the path to the actual file and wrote:

"../ShooterWwiseProject/GeneratedSoundBanks/Wwise_IDs.h"

Now it works perfectly.
Glad you figured it out! I'll copy/paste your solution in an answer for future reference.

1个回答

0 投票
 
已采纳

Answer found !

 

Obviously it's not enough to write #include "Wwise_IDs.h"

I added the path to the actual file and wrote:

"../ShooterWwiseProject/GeneratedSoundBanks/Wwise_IDs.h"

Now it works perfectly.

用户: Benoit S. (Audiokinetic) (16.0k 分)
Same problem here, I tried what Filipe D. answered, not working for me maybe I have misdone something.
I am using Unity, Windows, Visual Studio.
At the top of my main C# script I typed : #include "C:\Users\TESTudiant\Documents\Media UNITY\Thoronet Terrain\Assets\StreamingAssets\Audio\GeneratedSoundBanks\Wwise_IDs.h";
Error is "Preprocessor Directives expected"
I replaced "#include" with "using", not working neither.
Thanks in advance
...