Answered
0
0

Hi all,

We are currently exploring the method of using programmer sounds and audio tables to play localized audio as found in http://www.fmod.org/documentation/#content/generated/engine_new_unity/script_example_programmersounds.html.

What I’m currently struggling with, is that the Sound lengths are different than the programmer sound length. So whenever I play a sound, it either gets cut off too soon, or is playing too long without sound. We want to trigger different gameplay events, or other dialogues, shortly after one dialogue is done playing.

I couldn’t find any way to set the length of a parameter or event in code. What is the suggested approach?

Thanks in advance

  • You must to post comments
Best Answer
0
0

In Studio, you can set the programmer sound instrument to be async, this will play out any sound entirely before stopping/destroying. At which time the stopped and destroy callbacks will execute.
FMOD_STUDIO_EVENT_CALLBACK_STOPPED,
FMOD_STUDIO_EVENT_CALLBACK_SOUND_STOPPED,
FMOD_STUDIO_EVENT_CALLBACK_DESTROY_PROGRAMMER_SOUND

For example: the sound you want to play is one minute long and the programmer sound in the event is five seconds long on the timeline, normally the sound would stop after five seconds but using async the sound will continue for one minute, and then execute the stopped callback

  • You must to post comments
0
0

Thanks Cameron, we will try this!

  • You must to post comments
Showing 2 results
Your Answer

Please first to submit.