Initializes an iOS application’s audio session object.
- iOS 2.0–7.0Deprecated
The run loop that the interruption listener callback should be run on. Pass
NULLto use the main run loop.
The mode for the run loop that the interruption listener function will run on. Passing
NULLis equivalent to passing
CFRun Loop Default Mode
The interruption listener callback function. The application’s audio session object invokes the callback when the session is interrupted and (if the application is still running) when the interruption ends. Can be
Session Interruption Listener
Data that you would like to be passed to your interruption listener callback.
A result code. See Result Codes.
Your application must call this function before making any other Audio Session Services calls. You may activate and deactivate your audio session as needed (see
Audio), but should initialize it only once.