Problem playing sounds on iPad

hi,
here is my code, everything works fine on Mac, but when running on iPad there is no sounds.

private var nom : GameObject;

function playWav(nom)
{
nom.audio.volume = 1;
nom.audio.Play();
yield WaitForSeconds (nom.audio.clip.length);

}

i dont know whats wrong but mabey ipad doesnt support wav files (i dont know i dont have one)

Nope because it works with :

audio.clip = Wav001;
audio.Play ();

but it needs to create a if() by wav.

with name.audio.Play() nothings happens.

You have to strictly type the “nom” variable in the brackets after the function for iOS to “know” what you are referring to?

HTH
BTH

Yes it is just a part of the code, I refer to the gameObject using this function:

and call nom here:

But as i explained the code works fine on Mac, but no sound on iOS