getNoOfAudioClips() 공개 메소드

Gets the no of audio clips to process
public getNoOfAudioClips ( ) : int
리턴 int
예제 #1
0
    IEnumerator PlayCutsAudio()
    {
        float currTime = 0.0f;

        for (int i = 0; i < cs.getNoOfAudioClips(); i++)
        {
            yield return(new WaitForSeconds(cs.getAudioTime(i) - currTime));

            currTime = cs.getAudioTime(i);
            aud.clip = Resources.Load <AudioClip>(cs.getAudioClip(i));
            aud.loop = false;
            aud.Play();
        }
    }
예제 #2
0
    IEnumerator PlayCutsAudio()
    {
        float currTime = 0.0f;

        for (int i = 0; i < cs.getNoOfAudioClips(); i++)
        {
            yield return(new WaitForSeconds(cs.getAudioTime(i) - currTime));

            currTime = cs.getAudioTime(i);
            //New runtime.voc loading
            VocLoader voc = new VocLoader(cs.getAudioClip(i), "VocClip_" + i);
            if (voc != null)
            {
                if (voc.Audio != null)
                {
                    aud.clip = voc.Audio;
                    //aud.clip = Resources.Load <AudioClip>(cs.getAudioClip(i));
                    aud.loop = false;
                    aud.Play();
                }
            }
        }
    }