Questions et réponses de la communauté

Bienvenue sur le forum de questions et réponses d'Audiokinetic, propulsé par la communauté. C'est l'endroit où les utilisateurs de Wwise et Strata s'entraident. Pour obtenir une aide directe de notre équipe, veuillez utiliser la page « Tickets de soutien ». Pour signaler un bug, utilisez l'option Bug Report dans l'Audiokinetic Launcher. (Veuillez noter que les rapports de bug soumis au forum questions-réponses seront rejetés. L'utilisation de notre système de rapport de bug dédié garantit que votre rapport est vu par les bonnes personnes et a les meilleures chances d'être corrigé.)

Pour obtenir rapidement les meilleures réponses, suivez ces conseils lorsque vous posez une question :

  • Soyez précis : qu'essayez-vous de réaliser ou quel est le problème spécifique que vous rencontrez ?
  • Pensez à inclure les détails importants : incluez des détails tels que les versions de Wwise et du moteur de jeu, le système d'exploitation, etc.
  • Expliquez ce que vous avez essayé de faire : indiquez aux autres les mesures que vous avez déjà prises pour essayer de résoudre le problème.
  • Concentrez-vous sur les faits : décrivez les aspects techniques de votre problème. Se concentrer sur le problème aide les autres personnes à trouver rapidement une solution.

0 votes

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!

 

dans General Discussion par Emil S. (100 points)
edité par Emil S.

1 Réponse

0 votes
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.
par Deepak Chennakkadan (1.8k points)
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.
...