/// <summary> /// Returns TRUE if this clip is currently playing /// </summary> public bool IsPlaying() { if (clip == null) { return(false); } return(DeAudioManager.GetAudioGroup(groupId).IsPlaying(clip)); }
/// <summary> /// If the clip is active in an AudioSource (even if not playing) returns it, /// otherwise returns NULL /// </summary> /// <param name="ignorePaused">If TRUE ignores sources that are not playing</param> /// <param name="ignoreFadingOut">If TRUE ignores sources that are fading out</param> public DeAudioSource GetAudioSource(bool ignorePaused = false, bool ignoreFadingOut = true) { return(DeAudioManager.GetAudioGroup(groupId).GetExistingAudioSourceFor(clip, ignorePaused, ignoreFadingOut)); }