Impact

This forum is read only and just serves as an archive. If you have any questions, please post them on github.com/phoboslab/impact

1 decade ago by Sean12

So I'm pretty much ready to submit to the app store but I'm having a few issues. I have four games built using separate ejecta views. So each time a game is played a new view is displayed. The previous is released of course. I began running the allocations tool in xcode and found that a few of the openAl classes are allocation a lot of memory that eventually causes the app to crash on an iPod.
The large memory allocations are coming from EJOpenALBuffer.m
void * data = [self getAudioDataWithURL:url];

and EJOpenALManager.m
context = alcCreateContext( device, NULL );
alcMakeContextCurrent( context );

I'm not really sure how to handle this issue. hopefully someone can help me out.

1 decade ago by dominic

Which Ejecta version are you on? There was a memory leak in the EJAudioSourceOpenAL.m code; Maybe this also caused your memory problems? It's is fixed on the recent version on Github.

Original bug report: https://github.com/phoboslab/Ejecta/issues/79

1 decade ago by Sean12

I've replaced that but it still seems to happen. The only option that helped was commenting out the OpenAl player and forcing every sound to play from the avaudioplayer. The only issue with this is that It's only playing a sound the first time and then doesn't play again. Was there a bug with this previously?
Page 1 of 1
« first « previous next › last »