Community Q&A

Where Wwise users help each other out!

Audiokinetic's Community Q&A is the forum where Wwise users ask and answer questions within the Wwise community. If you would like to get an answer from Audiokinetic's Technical support team, make sure you use the Support Tickets page.

Code can't find ID header file.

0 votes

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!

 

asked Mar 16, 2016 in General Discussion by - (240 points)
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 Answer

0 votes
 
Best answer

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.

answered Mar 17, 2016 by Benoit S. (Audiokinetic) (15,900 points)
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
...