OpenAL broke my Game

… there are issues with both Apple supporting OpenAL and OpenAL support in Corona, it starts to leak memory like a car leaking oil, dirty and mucky.

I chose to use OpenAL due to the note that said media. will be replaced, but media functions have been working perfectly fine till now.

Any ideas on when this OpenAL thingie will be resolved from Ansca’s side?

cheers,

?:slight_smile: [import]uid: 3826 topic_id: 10780 reply_id: 310780[/import]

How can we fix this if we don’t know anything about this? You haven’t submitted a bug. You haven’t described the specific problem. You haven’t provided a simple reproducible test case. You didn’t even mention a build number. (Maybe this has already been fixed. We worked on a case a week or two ago.)

And many would disagree with you about the old media functions working ‘fine’.

  • You can’t load compressed formats with eventSound
  • You can’t play more than one stream simultaneously
  • You can’t stop, pause, or seek event sounds
  • Vert short event sounds may not get played
  • onComplete callbacks disappear if the same event sound is played simultaneously
  • no volume control with event sound sound
    [import]uid: 7563 topic_id: 10780 reply_id: 39211[/import]

Hi Ewing,
look this thread.

http://developer.anscamobile.com/forum/2011/01/10/device-crash

Actually you have not yet solved the problem for me.
I also spoke with Carlos, who has all of my sources.
Ciao

Marco/GuguGames.net
[import]uid: 7518 topic_id: 10780 reply_id: 39225[/import]

Marco, I can’t find your stuff in our bug database. It would really help if you could submit a new bug with a simple reproducible test case. Looking at the crash log from the other thread, it appears to be a crash inside Apple’s implementation. If you haven’t already, please file a bug with Apple because I suspect they are going to have to fix that to ultimately fix your problem. You may also want to test with a newer OS. Apple has made OpenAL fixes/changes since 4.0.

If you can supply us a simple reproducible test case, we might be able to help you come up with a work around depending on what the issue is. This new audio system has been out for half a year now. We have not received many crashing reports about it, so you are probably using it differently than most people. Figuring out that difference might help us solve the problem.

[import]uid: 7563 topic_id: 10780 reply_id: 39231[/import]

@ewing,
I agree about all the benefits of OpenAL that you have mentioned, but it caused a lot of grief, even the simulator that never ever crashed, crashed on me several times, change the routines to Media. and it works like a charm.

Put it on the device, OpenAL would start to leak like crazy, put in media and it is fine with an occasional leak here and there.

I am using build 512, (2011.4.12) I will try to send/attach the crash logs onto the bug db, but right now I want to finish the game and ship it.

cheers,

?:slight_smile: [import]uid: 3826 topic_id: 10780 reply_id: 39243[/import]

@Ewing,
while at it, do you think we can also get the pan and gain functionality of openAL? I guess that will offer some nice positional sounds and help add realism.

cheers,

?:slight_smile: [import]uid: 3826 topic_id: 10780 reply_id: 39252[/import]

I think we did more memory leak fixes around build 521. Please upgrade to the latest.

[import]uid: 7563 topic_id: 10780 reply_id: 39255[/import]

Officially, OpenAL effects are low on the priority list since few people are requesting them and Android support is sucking up all the oxygen. However, as you might have seen elsewhere (http://developer.anscamobile.com/forum/2011/05/25/hidden-audio-module-corona-sdk), there are secret APIs already in Corona. I’m trying to find some time to write about those.

[import]uid: 7563 topic_id: 10780 reply_id: 39259[/import]