Get event amplitude in Unity


(Enrico) #1

How can I get a float in Unity (5.6, using C#) showing the amplitude (metering) of an event in studio?
Is that possible? Otherwise, is it possible to show a channel group amplitude?


(Cameron Baron) #2

You can access the Spectrum data of a Channel or Channelgroup, which will give you the current fft values.
There is an example here: http://www.fmod.org/questions/question/getting-spectrum-of-master-channel-in-unity/

This is getting the Spectrum data of the Master Channel Group, but can easily be applied to any Channel/Channelgroup.