开发者

Is AudioSession actually the same thing as OpenAL?

Is AudioSession actuall开发者_高级运维y the same thing as OpenAL?


They are quite different in purpose.

OpenAL is a low level, cross-platform API for playing and controlling sounds.

AudioSession, as the documentation puts it, is a C interface for managing an application’s audio behavior in the context of other applications. You may want to take a look at AVAudioSession which is a convenient Objective-C alternative to AudioSession.

You would typically use Audio Sessions for getting sound hardware information, determining if other applications are playing sounds, specifying what happens to those sounds when your application also tries to play sounds, etc.

Audio Sessions are all about managing the environment in which your application plays sounds. Even sounds played using OpenAL are subject to the rules imposed by your application's audio session.

You should really check out the docs. There is a lot to cover.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜