How do I get the volume of the AudioClip (in C#)? NOTE: I do NOT mean the volume of the AudioSource. I am trying to get an array of float values that could then simulate an audio graph like this: Any help would be greatly appreciated!
Code (CSharp): AudioClip audioClip = GetComponent<AudioClip>(); // the samples is an float array, -1.0f ~ 1.0f . float[] samples = new float[audioClip.samples * audioClip.channels];