Flixel Forums

development => iOS => Topic started by: euphoria3k on Fri, Dec 2, 2011

Title: OpenAl sound effects issue
Post by: euphoria3k on Fri, Dec 2, 2011
hi

anyone got any ideas on how to sound effects working on ios5. I think its to do with openal framework!

thanks
Title: Re: OpenAl sound effects issue
Post by: initials on Sat, Dec 3, 2011
You're correct, it's openAL causing issues. From what I can tell, iOS5 doesn't like the way it's coded in FlxG using pointers to memory.

I've resolved the issue in my own way, but it's not perfect.

You can download my project here:

http://initialscommand.com/flxal/
Title: Re: OpenAl sound effects issue
Post by: euphoria3k on Fri, Dec 9, 2011
hey thanks for this! Got it working perfectly!
Title: Re: OpenAl sound effects issue
Post by: initials on Sat, Dec 10, 2011
Apparently the real fix is coming soon!

https://twitter.com/#!/semisecret/status/144109233779118080
Title: Re: OpenAl sound effects issue
Post by: initials on Sat, Dec 10, 2011

Another way to fix it:

Comment out this line in FlxG:

Code: [Select]
alcMacOSXMixerOutputRateProc(22050);

Make sure all your sounds are 44khz. You can use afconvert from the terminal.

https://twitter.com/#!/ADAMATOMIC/status/145153092789354496