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.

Scrubbing Linear Audio Content

0 votes

For a project that I'm currently working on, we need to give users the ability to scrub a timeline of up to 20 minutes, having the dialog pick up exactly where they drop the playhead. It's effectively a linear piece that I'd like to play/pause whenever the user grabs the playhead, and resume correctly wherever they choose to drop it. Is there any way within the Wwise editor, or any way with the API to identify the length of an audio file, and be able to sync that to a slider? The closest idea I've had so far, is using an RTPC (measured in intervals of 10ms?) to control an Initial Delay each time the VO is played, but that seems a little clunky. 

 Any leads are hugely appreciated!

asked Aug 13, 2019 in General Discussion by Ben G. (100 points)

1 Answer

0 votes
Hi Ben,

You can register to receive a duration callback which will tell you how long in milliseconds the file is. You can also pause and resume the file from the API as well as seek to any point in the file ( note that compressed file formats may be subject to seek tables ).

I would avoid using an RTPC to interact with initial delay for this problem.

Best,

Dan Murray
answered Aug 14, 2019 by Dan M. (2,660 points)
...