IPhone sound effects

I am making an opengl game for iPhone. And I'm going to start adding sound effects to the app. I wonder what is the best structure for this purpose.

Is an AV foundation the best option? Any others I skip, such as Open AL?

+3
source share
3 answers

The general idea of ​​the strengths / weaknesses of the iPhone API for iPhone in terms of the game:

  • AVFoundation: play long compressed files. Lack of access at a low level, high latency. Good for theme or background music. Bad for short-lived effects.
  • : (, 0-5 ) . PCM IMA4 .aif,.wav .caf. Fire-and-forget ( , ). API C. (, , , ).
  • OpenAL: . API OpenGL . . PCM (, Core Audio " " ). . .
  • : , ( , , ..). C-. . : AVFoundation, OpenAL Audio Units. .
  • : Core Audio. (< 30 ). C C. PCM. . .

, - , , , , (/ iPod , / / ...). AV Foundation Obj-C, Core Audio .

+18

Kowalski - , iPhone/iPad ( OSX Windows).

+1

You might want to check out Finch , OpenAL's autoplay engine, specifically for games.

0
source

Source: https://habr.com/ru/post/1720574/


All Articles