Activates or deactivates your app’s audio session; provides flags for use by other audio sessions.
- iOS 4.0–6.0Deprecated
YESto activate your app’s audio session or
NOto deactivate it.
A bitmapped value containing one or more flags from the Activation Flags enumeration.
On input, a pointer to an error object. If an error occurs, the framework sets the pointer to an
NSErrorobject that describes the error. If you don’t want error information, pass in
YES on success or
NO on failure.
If another app’s active audio session has higher priority than your app, and that other audio session doesn’t allow mixing with other apps, attempting to activate your audio session might fail.