how can i check if their is any audio playing?
Turn on your speakers or plug in headset, make sure the volume is up, and listen? What do you mean?
var aSource : AudioSource = gameObject.GetComponent(AudioSource);
function Update()
{
if(aSource.isPlaying)
{
Debug.Log("There is some sound playing, coming from "+this.gameObject.name);
}
}
This will help print every frame if there is sound coming from the object;