コミュニティQ&A

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

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

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

0 支持

Hi
I’m currently working with the UE4 ShooterGame example (UE4.12.5) and implementing the sound using the Wwise integration (2015.1.9 build 5624).
So far I’ve been able to implement everything using mostly Blueprints but since the weapon sounds are hard-coded, I’m trying to make the parameters exposed in the editor accept Wwise Event calls instead of SoundCues - or make the events callable from Blueprints.

To do this, I need to include at least the AkAudioEvent (and AkComponent) header in ShooterWeapon.h but I keep getting compiler errors saying that 'AkAudioEvent.h.generated' could not be found. This file is included by AkAudioEvent.h and should be generated by UE. 

I've spent the last couple of days searching the UE and AK forums and trying all kinds of suggestions but nothing seems to be working.

Some of the things I've tried so far:

  • Adding AkAudio as a public dependency in the build.cs file as well as its path (also tried adding as private dependencies)
  • Rebuilding the project in Xcode (I'm on a mac)
  • Generating/Refreshing the Xcode project in UE
  • Trying different paths and moving things around
  • Running the GenerateProjectFiles.command file which gives me an error saying that some files appear to be missing (I guess this has something to do with installing the engine from the Epic Launcher instead of building it from source code, and shouldn't be related to my problem?)

Does anyone have experience with calling Ak Events from source code?

Thanks!

 

Emil S. (100 ポイント) General Discussion
Emil S. 編集

回答 1

0 支持
Within Wwise go to Project/Project Settings/SoundBanks/ and make sure to check 'Generate Header File'. After that make sure that the generated header file's path is in the right directory where your source is.
Deepak Chennakkadan (1.8k ポイント)
Thanks Deepak! I found a workaround by creating new C++ functions and just using them to call the Ak Events within Blueprint.
I remember checking the 'Generate Header File' option but for some reason it is unchecked now. Haven't tested it yet but that was likely the problem. Thanks again.
...