Get the rms volume of events while using Resonance

Hi,

I want to get the rms volume of some events at runtime, I tried getMeteringInfo but it always gives me 0. No matter I get which dsp in the mixer, inputInfo or outputInfo. It works fine when I bypass Resonance Audio Source, so it seems Resonance makes the function broken.

Also, I would like to ask if it’s possible to get the actual received volume of the listener, since there’s atteuation.

Thanks a lot!

Hi,

The issue with Resonance is that when the signal goes through the Audio Source, it is no longer in the FMOD signal chain.

An option may be trying the DSP capture scripting example: Unity Integration | Scripting Examples - DSP Capture. Which I found received accurate sample data even with the Resonance Audio Source. You could add a getMeteringInfo call to the mCaptureDSP and it should provide correct rms levels.

Hope this helps!