public void PlaySfxCar(Sfx.Type type)
    {
        if (MuteSfx)
        {
            return;
        }

        // name
        if (isPaused)
        {
            Debug.LogWarning("Its paused... get out");
            //    return;
        }

        string resName = Sfx.sfxFiles[(int)type];
        //Debug.Log("Load sfx:" + resName);
        AudioClip clip = (AudioClip)Resources.Load(resName, typeof(AudioClip));

        if (clip == null)
        {
            Debug.LogError("Unable to load clip: " + resName);
            return;
        }
        car        = getFreeChannel();
        car.volume = _mute ? 0 : startVolume;
        car.pitch  = startPitch;
        car.loop   = true;
        car.clip   = clip;
        car.Play();
        //XXXchan.PlayOneShot(clip);
    }
    public IEnumerator PlaySfxCoroutine(Sfx.Type type)
    {
        if (MuteSfx)
        {
            yield break;
        }

        string resName = Sfx.sfxFiles[(int)type];
        //Debug.Log("Load sfx:" + resName);
        AudioClip clip = (AudioClip)Resources.Load(resName, typeof(AudioClip));

        if (clip == null)
        {
            Debug.LogError("Unable to load clip: " + resName);
            yield break;
        }

        AudioSource chan = getFreeChannel();

        chan.volume = _mute ? 0 : SfxVolume;
        chan.loop   = false;
        chan.clip   = clip;
        chan.Play();
        while (chan.isPlaying)
        {
            yield return(null);
        }
    }
    public void PlaySfxForDynamic(Sfx.Type type)
    {
        if (MuteSfx || (dynChannel != null && dynChannel.isPlaying))
        {
            return;
        }

        // name
        if (isPaused)
        {
            Debug.LogWarning("Its paused... get out");
            //    return;
        }

        string resName = Sfx.sfxFiles[(int)type];
        //Debug.Log("Load sfx:" + resName);
        AudioClip clip = (AudioClip)Resources.Load(resName, typeof(AudioClip));

        if (clip == null)
        {
            Debug.LogError("Unable to load clip: " + resName);
            return;
        }

        dynChannel        = getFreeChannel();
        dynChannel.volume = _mute ? 0 : SfxVolume;
        dynChannel.loop   = false;
        dynChannel.clip   = clip;
        dynChannel.Play();
    }
    // Token: 0x06000A37 RID: 2615 RVA: 0x0003E190 File Offset: 0x0003C590
    public void PlaySfxCar(Sfx.Type type)
    {
        if (AppSoundManager.MuteSfx)
        {
            return;
        }
        if (this.isPaused)
        {
            Debug.LogWarning("Its paused... get out");
        }
        string    text      = Sfx.sfxFiles[(int)type];
        AudioClip audioClip = (AudioClip)Resources.Load(text, typeof(AudioClip));

        if (audioClip == null)
        {
            Debug.LogError("Unable to load clip: " + text);
            return;
        }
        AppSoundManager.car        = this.getFreeChannel();
        AppSoundManager.car.volume = ((!this._mute) ? AppSoundManager.startVolume : 0f);
        AppSoundManager.car.pitch  = AppSoundManager.startPitch;
        AppSoundManager.car.loop   = true;
        AppSoundManager.car.clip   = audioClip;
        AppSoundManager.car.Play();
    }
    // Token: 0x06000A46 RID: 2630 RVA: 0x0003E618 File Offset: 0x0003CA18
    public IEnumerator PlaySfxCoroutine(Sfx.Type type)
    {
        if (AppSoundManager.MuteSfx)
        {
            yield break;
        }
        string    resName = Sfx.sfxFiles[(int)type];
        AudioClip clip    = (AudioClip)Resources.Load(resName, typeof(AudioClip));

        if (clip == null)
        {
            Debug.LogError("Unable to load clip: " + resName);
            yield break;
        }
        AudioSource chan = this.getFreeChannel();

        chan.volume = ((!this._mute) ? AppSoundManager.SfxVolume : 0f);
        chan.loop   = false;
        chan.clip   = clip;
        chan.Play();
        while (chan.isPlaying)
        {
            yield return(null);
        }
        yield break;
    }
    // Token: 0x06000A45 RID: 2629 RVA: 0x0003E574 File Offset: 0x0003C974
    public void PlaySfx(Sfx.Type type)
    {
        if (AppSoundManager.MuteSfx)
        {
            return;
        }
        if (this.isPaused)
        {
            Debug.LogWarning("Its paused... get out");
        }
        string    text      = Sfx.sfxFiles[(int)type];
        AudioClip audioClip = (AudioClip)Resources.Load(text, typeof(AudioClip));

        if (audioClip == null)
        {
            Debug.LogError("Unable to load clip: " + text);
            return;
        }
        AudioSource freeChannel = this.getFreeChannel();

        freeChannel.volume = ((!this._mute) ? AppSoundManager.SfxVolume : 0f);
        freeChannel.loop   = false;
        freeChannel.clip   = audioClip;
        freeChannel.Play();
    }
    // Token: 0x06000A41 RID: 2625 RVA: 0x0003E448 File Offset: 0x0003C848
    public IEnumerator PlaySfxAndPauseMusic(Sfx.Type t)
    {
        this.PauseAll();
        yield return(base.StartCoroutine(this.PlaySfxCoroutine(t)));

        yield break;
    }
 public IEnumerator PlaySfxAndPauseMusic(Sfx.Type t)
 {
     PauseAll();
     yield return(StartCoroutine(PlaySfxCoroutine(t)));
 }