Metasounds all start playing the same sound after a few minutes of play

Hey all. I’m working on a game that uses a bunch of metasounds, some being played continuously using audio components and some with “Play Sound at Location.”

During the first few minutes of play, everything sounds as it should. After that, I am getting a bug where most or all of the sounds start playing a single metasound instead of the intended sound.

I can see this happening with the au.3dVisualize.ActiveSounds console command, but after looking through the audio cli, I’m not sure what other commands can help me find the bug.

Based on the behavior, it feels like it could be some kind of memory leak, where some overflows results in the wrong sounds getting played, but really I have no idea.

Any recommendations for how to debug this or best practices for metasounds I might be missing? (e.g. is using Play Sound at Location a problem?)

Update: I think this may have been because one metasound (the one that was eventually dominating) was not set up as a one shot when it should have been. It is being called with “Play Sound at Location” when something happens, i.e. should be a one shot, but wasn’t set up that way. Need to test more but seems like this solved it so far.

1 Like