Author Topic: OpenAl sound effects issue  (Read 2400 times)

euphoria3k

  • New Member
  • *
  • Posts: 4
  • Karma: +0/-0
    • View Profile
OpenAl sound effects issue
« 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

initials

  • Contributor
  • ****
  • Posts: 378
  • Karma: +0/-0
  • Initials
    • View Profile
    • Initials Blog. Code and other things.
Re: OpenAl sound effects issue
« Reply #1 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/
Initials: Super Lemonade Factory, Super Lemonade Factory Part Two, Above The Clouds, Revvolvver, Four Chambers of the Human Heart

euphoria3k

  • New Member
  • *
  • Posts: 4
  • Karma: +0/-0
    • View Profile
Re: OpenAl sound effects issue
« Reply #2 on: Fri, Dec 9, 2011 »
hey thanks for this! Got it working perfectly!

initials

  • Contributor
  • ****
  • Posts: 378
  • Karma: +0/-0
  • Initials
    • View Profile
    • Initials Blog. Code and other things.
Re: OpenAl sound effects issue
« Reply #3 on: Sat, Dec 10, 2011 »
Initials: Super Lemonade Factory, Super Lemonade Factory Part Two, Above The Clouds, Revvolvver, Four Chambers of the Human Heart

initials

  • Contributor
  • ****
  • Posts: 378
  • Karma: +0/-0
  • Initials
    • View Profile
    • Initials Blog. Code and other things.
Re: OpenAl sound effects issue
« Reply #4 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

Initials: Super Lemonade Factory, Super Lemonade Factory Part Two, Above The Clouds, Revvolvver, Four Chambers of the Human Heart