views:

63

answers:

1

Is AudioSession actually the same thing as OpenAL?

+4  A: 

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.

MihaiD