// Set cutoff frequency to something low that we'll be able to hear
_filter.cutoffFrequency = 200.0f;
// That didn't work. Let's just go through the keys!
for (int i = 0; i < _filter.customCutoffCurve.keys.Length; ++i)
_filter.customCutoffCurve.keys[i].value = _filter.cutoffFrequency;
// That still didn't work. Send help.
Its still not fixed… The low pass filter doesn’t do anything to the audio listener.
I have an underwater scene and it would be great to just have all sound effects be automatically muffled when the player goes underwater, instead of having to apply something to every single audiosource.
I found a solution that works for me; just make sure the AudioLowPassFilter is ABOVE the listener on the component hierarchy. (Drag and drop the component so it’s above the listener).