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.

Post Event when sound has finished playing.

0 votes
Hello!

 

This is my first game in which we're using Wwise for audio. We have developed our own wrapper for the API, and it's working great!

I'm new to how the flow works in the Wwise editor, but I like it. It's very powerful.

Now that that's been said, let's get down to brass tacks. I've encountered an issue that I'm having trouble solving; I need to post an event when a sound has finished playing.

I have a radio communication in our game, and when the SFX containing the voice starts to play, I delay it with a second or two in order to play a sound effect for the radio comm, like a static buzz. That works great, however, I need to play a sound when the voice is over, another static buzz.

Wwise should be powerful enough to be able to handle this from inside the editor, right? Or do I have to do this from the C++ side?

 

Thanks in advance, I hope that this question is not a duplicate of another in the forums. I searched for a while but didn't find anything.
asked Nov 15, 2016 in General Discussion by Linus N. (100 points)

1 Answer

0 votes
Hello

I don't think there is functionality for posting an event when a sound finishes from within the Wwise tool.

One thing you could do is use the event's on finished callback. You'd need to hold on to a handle for the voice event, and subscribe to that events on finished callback. You could then use that callback to post another event.

All that would have to be done in your game engine/API wrapper.

As an alternative, if you just need to play a sound before and after a voice line, you could use a sequence container in Wwise, with the radio statics before and after the voice in the sequence. That way the voice event would trigger Radio On / Voice / Radio Off.
answered Nov 16, 2016 by Simon G. (990 points)
...