Creating Audio "Areas" With Different Effects/Muting

I’ve seen worlds where outdoor ambience like wind will be playing but when you enter a certain area like a building, the sound will fade off and become muffled. I am trying to do something similar but I have no idea how. Any tips or leads are welcome, I’ve tried looking around on how to do this to no avail.