Пример #1
0
        void Start()
        {
            Application.targetFrameRate = 60;
            c = Constant.CreateDefault();
            ImpulseResponses.LoadAll(c);

            waveAudioClip = WaveAudioClip.CreateWavAudioClip("Bytes/DrumLoop2.wav");
            debugButton.AddButton("Drum1", () =>
            {
                waveAudioClip = WaveAudioClip.CreateWavAudioClip("Bytes/DrumLoop2.wav");
            });
            debugButton.AddButton("Drum2", () =>
            {
                waveAudioClip = WaveAudioClip.CreateWavAudioClip("Bytes/TightFunkBreak-mono.wav");
            });
            debugButton.AddButton("Ochestra\nStrings", () =>
            {
                waveAudioClip = WaveAudioClip.CreateWavAudioClip("Bytes/OchestraStrings-mono.wav");
            });
            debugButton.AddButton("Siren", () =>
            {
                waveAudioClip = WaveAudioClip.CreateWavAudioClip("Bytes/PoliseCarSiren-mono.wav");
            });
            debugButton.AddButton("Stop", () =>
            {
                isPlaying = false;
                audioClipStreamingPlayer.Stop();
            });
            positionCircle.onTouched += OnTouched;
            overlapAddLeft            = new OverlapAdd(c);
            overlapAddRight           = new OverlapAdd(c);
            bufferSample              = new float[c.blockSamples];
            audioClipStreamingPlayer.Initialize(c, this);
        }
Пример #2
0
 /// <summary>
 /// ImpulseResponsesテスト
 /// </summary>
 private void ImpulseResponsesTest()
 {
     if (!impulseResponsesFlg)
     {
         return;
     }
     debugButton.AddButton("ImpulseResponsesTest", () =>
     {
         ImpulseResponses.LoadAll(Constant.CreateDefault());
     });
 }