AudiokineticのコミュニティQ&AはWwiseやStrataのコミュニティ内でユーザ同士が質問・回答をし合うことができるフォーラムです。Audiokineticテクニカルサポートチームからの回答をご希望の場合は、必ず サポートチケットページ をご利用ください。

Scrubbing Linear Audio Content

0 支持

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!

Ben G. (100 ポイント) 2019 8/13 質問 General Discussion

回答 1

0 支持
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
Dan M. (2,640 ポイント) 2019 8/14 回答
...