Audiokinetic's Community Q&A is the forum where users can ask and answer questions within the Wwise and Strata communities. If you would like to get an answer from Audiokinetic's Technical support team, make sure you use the Support Tickets page.

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?

asked Oct 31, 2016 in General Discussion by Mario P. (140 points)

1 Answer

+1 vote
Best answer
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.


answered Nov 3, 2016 by Robert M. (4,640 points)
selected Nov 6, 2016 by Fabien B. (Audiokinetic)
Thank you! It's not a optimal solution but we can work with that, I suppose.