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.

0 votes
How do you persist sound events across a level change?  I've read some stuff online about adding an AkComponent to the Game Instance - but the GameInstance is not an actor, you cannot attach components to it?

We have a level  that we want to start silent and then ramp up the sound.  The various ambient sounds are kicking in automatically a few frames before we post the audio event to silence the sound in the level's BeginPlay.  We tried doing it in the construction event, but that still did not work.

We're thinking that we need to set the volume to 0 before the level change, so that all the ambient stuff won't be audible from the very start.  How would I do that?
in General Discussion by Bob S. (220 points)

1 Answer

+2 votes
 
Best answer

In fact, it's not necessary to use a real AkComponent, but the AkGameObjectID, a uint64 variable.So DUMMY_GAMEOBJ is the solution.Good luck for you!

by guoli d. (500 points)
selected by Mads Maretty S. (Audiokinetic)
Thanks - can you explain further?  Is this something that needs to be done from C++ or can I do it from blueprint?  Sorry I am new to WWise, just trying to help out our musician.
Use FAkAudioDevice::Get()->PostEvent as usual,but set the AAcotr parameter nullptr,and use string EventName as event parameter, you'l do it!
...