Multiple listeners for a single player game?

Kinda of a weird one - but is there a way I can use multiple listeners for a single player game? E.g. if you can play a game inside a game and want to have a listener inside the “meta game” that only relates to a group of sounds put into that game… Hoping that question made sense :stuck_out_tongue:

There’s a couple of ways of handling this, depending on how your game is set up:

  • Studio::System::setListenerWeight can be used to adjust how much a specific listener affects the mix, essentially allowing you to fade between or disable specific listeners if you have multiple.
  • With multiple listeners affecting the mix at once, you can use Studio::EventInstance::setListenerMask to specify which listeners are taken into account for a given event instance’s behaviour.
  • You could also resolve this in your own code when the player moves to the meta game, for example by disabling the non-meta game listener and “swapping” to the meta game listener, or adjusting the attributes of the existing listener to suit the needs of the meta game, etc.