コミュニティQ&A

Audiokineticのコミュニティ主導のQ&Aフォーラムへようこそ。ここはWwiseとStrataのユーザのみなさまがお互いに協力し合う場です。弊社チームによる直接のサポートをご希望の場合はサポートチケットページをご利用ください。バグを報告するには、Audiokinetic LauncherのBug Reportオプションをご利用ください。(Q&AフォーラムではBug Reportを受け付けておりませんのでご注意ください。専用のBug Reportシステムをご利用いただくことで、バグの報告が適切な担当部門に届き、修正される可能性が高まります。)

最適な回答を迅速に得られるよう、ご質問を投稿される際は以下のヒントをご参考ください。

  • 具体的に示す:何を達成したいのか、またはどんな問題に直面しているのかを具体的に示してください。
  • 重要な詳細情報を含める:Wwiseとゲームエンジンのバージョンやご利用のOSなど詳細情報を記載してください。
  • 試したことを説明する:すでに試してみたトラブルシューティングの手順を教えてください。
  • 事実に焦点を当てる:問題の技術的な事実を記載してください。問題に焦点を当てることで、ほかのユーザのみなさまが解決策を迅速に見つけやすくなります。

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!

 

- (240 ポイント) General Discussion
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
...