void Awake()
    {
        //ドライバー名デバッグ
        string[] asioDriverIDNames = AsioManager.GetAsioDriverNames();
        foreach (string asioDriverIDName in asioDriverIDNames)
        {
            Debug.Log(asioDriverIDName);
        }

        //ASIOスタート
        AsioManager.PrepareAsio(2, sampleRate, sampleLength);
    }
Example #2
0
        private void Awake()
        {
            // サンプル数の2の乗数を計算
            length_bit = (int)(Mathf.Log(sampleLength, 2f));

            //ドライバー名デバッグ
            string[] asioDriverIDNames = AsioManager.GetAsioDriverNames();
            foreach (string asioDriverIDName in asioDriverIDNames)
            {
                Debug.Log(asioDriverIDName);
            }

            //ASIOスタート //localは1 ドライバー選択可能に
            string instLog = AsioManager.PrepareAsio(2, sampleRate, sampleLength);
        }
        private void Awake()
        {
            length_bit = (int)(Mathf.Log(isampleLength, 2f));
            //ドライバー名デバッグ
            string[] asioDriverIDNames = AsioManager.GetAsioDriverNames();
            foreach (string asioDriverIDName in asioDriverIDNames)
            {
                Debug.Log(asioDriverIDName);
            }
            //tsp読込
            double[] oSignal = readTsp();
            Debug.Log("音源長さ:" + oSignal.Length);
            Debug.Log("sampleLength:" + osampleLength);

            //ASIOスタート
            AsioManager.PrepareAsio2(3, sampleRate, isampleLength, osampleLength, oSignal);
        }