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.

Can't trigger a stop event.

+2 votes
Hi guys!
I'm trying to stop a music event (battle music), when my boss dies. I could use a RTCP but for some reasons (which it would be too long to explain) I've used an event to trigger the battle_music to play. That worked, but I'm having problem to stop that music. I've created a battle_ music stop_event which it would be triggered by the boss_death event, but in the game the music doesn't stop. Any idea?

I can add screenshots if that's not clear.
asked Sep 1, 2020 in General Discussion by Patrizio T. (120 points)

3 Answers

0 votes
Hi! Not a real answer, sorry, but I have the same exact problem in the Limbo session demo.

Two separate events showld:
1) start the first track
2) stop the previous track and start the second one

In the soundcaster session everything works fine, but in game the first track won't stop.

Also, in profiling the two events everything seems ok when it clearly isn't. Have you found any solutions?
I will write here if I find a solution.

Have a nice day!
answered Sep 2, 2020 by Pietro F. (150 points)
Hey I solved the problem! I am a noob since I started recently, so I don't really know what I did... In the event editor on the right, under the  "Scope" menu I set it to "global" instead of "game object". Now the music stops as planned.
Hi Pietro, I didn't find a way to fix it. I'm not really sure what is going on with event called by Unity. It must something related to it.

I've used an RTCP to switch the music, in the end.

Still, it'd be great to know why that wasn't working.
You're a legend. I have been struggling stopping events for hours and hours. And changing to global instantly fixed my problems. Man, I was getting suicidal about this
0 votes
Hello, make sure that your stop and play events are posted on the same game object. Alternatively, you can set the stop event scope to "Global" instead of "Game Object" in event editor in your Wwise project.
answered Sep 4, 2020 by Radek Karnik (990 points)
0 votes
You could use a transition segment to play an exit cue? Also, ensure your Transitions are ticked to what you want to happen, e.g. Exit the cue at the next beat / bar, not at the end of the music cue, which is what sounds like is happening. It's the top tick box, when setting up transitions. you can also set fade-ins/outs here as well.
answered Jan 10 by Christina S. (140 points)
...