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
I am a newbie in WWise. Recently, I am trying to integrate the Wwise plugin to my game project using UnrealEngine, with Event based packaging. Everything seems ok.

But I'm curious about what's the strategy the ebp used to load the events and banks.

Does it load all event and banks and their media data while starting the game? Or just load one after we call PostEvent?

I've try print a time before and after the postevent call? Found that it cost quite a small time, seems the event has already been loaded. But I don't think All Event will be loaded in start time, this cost too much.

Who can tell me the truth behind it?
dans General Discussion par deXian z. (190 points)

1 Réponse

+1 vote
 
Meilleure réponse
With EBP, AkAudioEvent and AkAudioBank assets serialize the bank data directly into the Unreal asset. When a map gets loaded, all assets referenced in the map (and in the map's blueprint nodes such as PostEvent) are loaded as well. When an event or bank asset is loaded, the media assets it references are also be loaded into memory (or an IO hook is opened if they are streaming). The loading system is designed this way so that all Wwise asset data required by a map will be in memory and usable once the map load is finished . In a similar way, unloading a map will unload the event, bank and media assets and their data will be garbage collected, freeing the memory.
par Etienne R. (Audiokinetic) (1.1k points)
sélectionné par deXian z.
So, It means that if i want to control the event's loading time myself. I need to change  these AkEvent reference to SoftObjectPtr and async load them the time I need them?Thanks.
If you want to directly control the lifetime of an event and its media in memory, you will have to make sure you are loading and unloading the asset only in code (such as with  an asyncload). Otherwise its lifetime will be tied to that of the objects referencing it.

Another alternative that would work with just blueprints would be streaming sublevels with your events in and out depending on whether you need them.
...