La section Questions et réponses de la communauté Audiokinetic est un forum où les utilisateurs de Wwise et de Strata peuvent poser des questions et répondre à celles des autres membres de la communauté. Si vous souhaitez obtenir une réponse de la part de l'équipe de soutien technique d'Audiokinetic, veillez à utiliser le formulaire de Tickets de Soutien.

How to know sound length in UE4 for sounds associated to Play Events

0 votes
Hi, I'm creating a plugin for the Unreal Engine 4 editor and I want to be able to know the length of an audio associated to a Play Event (obviously only an audio is associated to each play event). I've been navigating through the Wwise plugin code and I haven't seen anything useful for that. I understand that this feature could be against the philosophy of the Event architecture but it limits a lot some features I want to be able to have in my plugin. Is there anyway to have length information of the audios stored in an audio bank?

Thanks!
demandé 31-Oct-2016 dans General Discussion par Mario P. (140 points)

1 Réponse

+1 vote
 
Meilleure réponse
When generating banks in wwise be sure to check "generate xml file" under options. It will create an XML file that has the length that you can parse through. It has a minimum and max length. in an event that has one sound they are the same, in one that has multiple it will give you from the shortest to the the full length. That is what my coder and I are doing.

 

-Rob
répondu 3-Nov-2016 par Robert M. (4,640 points)
sélectionné 6-Nov-2016 par Fabien B. (Audiokinetic)
Thank you! It's not a optimal solution but we can work with that, I suppose.
...