async void TestAvaraginDataWithAudioData() { const string DOWN_EFFECT_PATH = "D:/BeatSaberMod/EffectSamples/Down_Effect.wav"; AudioClipUtils audioClip = new AudioClipUtils(); await audioClip.LoadByWebRequest(DOWN_EFFECT_PATH, AudioType.WAV); float[] data = audioClip.GetData(); data = AveragingData(data, 2000); for (int i = 0; i < data.Length; i++) { Debug.Log(data[i]); } }
public async void SetWave(string path) { await audioClip.LoadByWebRequest(path, AudioType.WAV); graphRenderer.Render(audioClip); }