Sound problems -- why will 2 play and the other 2 won't?

OK, I have four “sounds” in my game. They all play fine in the Unity IPhone app. But only two of four play when the build is done? Code is correct and all sounds are the same type etc. Any thoughts?

I had a problem with my last project where sounds played fine in the editor but not on the device. In my case it was related to the order of my code - I moved a couple of lines to earlier in the function and it worked in the editor and on the device. I forget the exact code that I had but maybe posting the code you’re using for the sound might help?

Are you by any chance assigning a new clip to an Audio Source, and trying to play it immediately thereafter? That doesn’t work well on the touch platform; I believe it is a problem with memory bandwidth.

Also, this is probably not the issue, but I don’t want to leave it out if you don’t know: only one compressed audio file can play at a time.

Thanks guys. I’ll look into both tomorrow. I suspect between the two it’s more likely the order but I will let all know for reference.

Actually, reviewing … the first one that plays (the theme music_ is compressed, and the one sound that plays fine is uncompressed. The two other sounds that do not play are also compressed, so I now think that’s the issue.

LATER EDIT … Yup, that was it. I was trying to play two compressed sounds at once. Thank you again to the forum members who jumped in with suggestions. The best darn community ever.