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.

Get duration of a wem file

0 votes
Hello,

I am working on an audio task on unreal engine and I need this :

I have a wem file and I need to get the duration of that audio file.

Is there any method that gets the file as parameter and return the duration or any other method that could calculate the duration using the wem file (or the data source of that file).

Could you please help me with this!

 

Thank you very much.
asked Mar 20, 2017 in General Discussion by Taleb S. (100 points)

1 Answer

+1 vote
When you call AK::SoundEngine::PostEvent(), you need to register a callback function and register the AK_Duration callback type. The callback will be triggered when the duration of the sound is known by the SoundEngine.
answered Jun 13, 2017 by Guillaume R. (Audiokinetic) (5,630 points)
...