Exemplo n.º 1
0
    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]);
        }
    }
Exemplo n.º 2
0
    public async void SetWave(string path)
    {
        await audioClip.LoadByWebRequest(path, AudioType.WAV);

        graphRenderer.Render(audioClip);
    }