CompressorSoundEffect SideChain

Latest patch has fixed CompressorSoundEffect and added the SideChain property.

What is SideChain?
You can point it at another Sound or SoundGroup to have the SideChain-ed sound drive the Compression effect.

How is this useful?
It’s used for a ducking effect, where one sound will make the other “fade out”. The canonical example of this would be for a DJ voiceover - someone speaking on a mic would “duck out” the playing music.

How can I use it in my game?
You can use this to give your sound effects more “punch”.
If you’ve got a background music soundgroup, try ducking it out (using this CompressorSoundEffect) from your in-game SFX soundgroup.

If you do some sort of major audio cue in your game, try ducking out your background music and sound effects while that cue is playing. Think something like:

See it for yourself here:

And as always, post if you’ve got any problems or have something to share.


I’m still not quite sure how this works.

So it’s like a train? After the first one finishes the second sound immediately begins to play?

1 Like

I think it’s that by pointing the SideChain toward a playing Sound or SoundGroup, the loudness of the playing Sound/Group directly affects the amount of the Compression effect that’s pointing at it, such that when the Sound/Group on the SideChain gets louder, the Sound/Group that the Compression effect is on gets quieter, at the same time.

So basically if one sound is super quiet and the next sound is super loud:

-Sound 1 sounds quiet
-As it nears the end it’s “loudness” increases/decreases to match the next sound’s “loudness”
-Sound 2 (super loud) now isn’t such a sudden and loud noise

Like that kinda?

From what I’m getting, not quite

More like:
-Sound 1 is playing, comfortable volume music
-Sound 2 is not playing, super ear screech jumpscare
-Sound 2 plays while Sound 1 is in the middle of playing at any point
-Sound 2’s loudness drowns out Sound 1, as opposed to playing on top of each other and becoming even louder
-Sound 2 stops playing, Sound 1’s volume returns to normal immediately



The place you linked has the sound just stop like it freezes after messing around with the effects.
Equalizer, echo and pitch shift contribute a lot to the sound just stopping to play.
I don’t know if this is intended, I can provide some video tomorrow.

Are you on mobile? (Not happening for me no matter what I do)

No this is on PC.
Win7 Ultimate
Posting video shortly.

Okay, I’ve seen it happen and I’ll see if I can figure it out.

It happens when I move the camera close to where the sound emits from.

It’s a pretty silly memory leak in the sidechain code. This will be fixed. The audio error happens when the “Current” goes over the “Max” limit. This is visible in the diagnostics panel in studio.

Screen Shot 2016-11-11 at 1.58.42 PM.png

I’ll probably add some analytics to this. If you see any other audio errors, check this first.

1 Like

Will do, I just caught this one on accident in-game.

Fix for this is out