Hi,
Has anyone encountered problems with the audio clips not playing on Iphone.
They work fine in Unity, Only once on Iphone they stop playing after about 30 seconds into the game.
weird.
Thanks.
Hi,
Has anyone encountered problems with the audio clips not playing on Iphone.
They work fine in Unity, Only once on Iphone they stop playing after about 30 seconds into the game.
weird.
Thanks.
Is this one audio file that is longer than 30s?
I don’t know the inner workings of how Unity is playing sound on the iPhone, but Apple provides 2 APIs for playing sound. One is for short sounds and is limited to 30s. Some more info can be found in the iPhone SDK under “Audio Video Coding How-To’s”.
Maybe someone from Unity can give some more explanation on how audio is currently implemented.
-markus
No the audio clips are short 1 second long.
Things like gun shots ect, general sound fx clips. They play fine in game for about 30 seconds then seem to stop.
Thanks
Hi-
just tested the most simple case (1 audio file in a loop) and it played happily for several minutes.
So it doesn’t seem to be a general problem…
Yeah I could get the same to work a looping audio file will work.
The problem seems to be with single shot audio clips,
I’m using these for missile’s being launched these are the ones that stop after 30 seconds. on the iphone but work in Unity.
Thanks
Hi seems to be working now.
There was too many individual Audio clips going off I think, Anyway I cut the number down and its working, not sure if there’s a limit.
Thanks
How did you get it to work ?
I tried something very simple, I put an explosion sound onto the Startrooper example and after around 24 explosions on the iPhone the audio stops working.
Is that example missing something fundamental ?
There is a bug in OpenAL implementation on iPhone. iPhone Unity 1.0.1 will include workaround for it.
Any word on a timeline for this fix?
My game is near completion, but the audio issue (and memory management crashes) make it difficult to plan a release date.
The game itself gives audio cues for fuel pickups, which are required for the player to stay alive. So even if I can find a workaround for the memory issues, I’m not sure what to do about the audio.
Any info is great.