private void ConfigureAudioSource()
 {
     if (audioSource == null)
     {
         audioSource = GetComponent <AudioSource>();
     }
     config.SetupAudioSource(audioSource);
     cue.Initialize(audioSource);
 }
 private void ConfigureAudioSources()
 {
     foreach (AudioSource aSource in audioSources)
     {
         config.SetupAudioSource(aSource);
         cue.Initialize(aSource);
         //aSource.clip = cue.GetNextClip();
     }
 }
    private void ConfigureAudioSource()
    {
        if (config != null)
        {
            AudioSource audioSource = GetComponent <AudioSource>();
            config.SetupAudioSource(audioSource);
        }

        if (cue != null)
        {
            AudioSource audioSource = GetComponent <AudioSource>();
            cue.Initialize(audioSource);
        }
    }
    private void Initialize()
    {
        foreach (AudioSource aSource in audioSources)
        {
            config.SetupAudioSource(aSource);
            cue.Initialize(aSource);
        }

        if (concatenationInterval == ConcatenationInterval.FixedAtIndex0)
        {
            interval = (double)cue.audioClips[0].samples / cue.audioClips[0].frequency;
        }
        else if (concatenationInterval == ConcatenationInterval.SetOnInspector)
        {
            interval = intervalOnInspector;
        }
    }
Exemplo n.º 5
0
 private void Initialize()
 {
     config.SetupAudioSource(audioSource);
     cue.Initialize(audioSource);
 }