AudioSource.isPlaying Manual     Reference     Scripting  
Scripting > Runtime Classes > AudioSource
AudioSource.isPlaying

var isPlaying : bool

Description

Is the clip playing right now (Read Only)?

// When the audio component has stopped playing, play otherClip
var otherClip : AudioClip;
function Update ()
{
if (!audio.isPlaying)
{
audio.clip = otherClip;
audio.Play();
}
}