Audio reverb plays even when window is unfocused

  • Describe the bug. Describe what is happening when the bug occurs. Describe what you would normally expect to occur.

Whenever a sound is played/previewed in Studio and there is any kind of reverb from SoundService (i.e. AmbientReverb property set to something else than NoReverb), the reverb (not the sound itself) continues playing when the window is unfocused, given the following setting is enabled:

image

Ideally, the reverb portion of the sound should also respect this setting and not play when the window is unfocused.

  • How often does the bug happen (Everytime/sometimes/rarely)? What are the steps that reproduce the bug?

The bug happens every time. To reproduce:

  1. Make sure that the setting “Only Play Audio from Window in Focus” is enabled (in Settings > Studio);
  2. Open any place;
  3. Set the AmbientReverb property in SoundService to anything else than NoReverb;
  4. Preview/play any sound;
  5. Minimize or unfocus the window. The reverb is still playing.
  • Where does the bug happen (www, gametest, etc) Is it level-specific? Is it game specific?

It only happens in Studio (since the client plays sounds regardless of whether the window is focused or not), in any place.

  • When did the bug start happening?

I can’t pinpoint exactly when it started happening as it’s been a while since it began to happen.

  • Anything else that you would want to know about the bug if it were your job to find and fix it.

This also seems to happen if you add any sound effect that repeats the sound (such as echo, reverb or chorus), but I don’t really recall anything else related to this.