Table of Contents
Wwise Unity Integration Documentation
The Unity Integration supports two audio session categories.
AkAudioSessionCategorySoloAmbient(Default): When you use this category, audio from other apps is silenced. Your app's audio is also silenced by screen locking and by the Silent switch (called the Ring/Silent switch on the iPhone).
AkAudioSessionCategoryAmbient:AmbientSound allows your app's audio to be mixed with other apps. Any audio interruptions, such as an incoming phone call, or playing music with the Music app using a remote control, will be mixed with your app's audio by default. However, you can specify route sounds and music to a special bus so that they get muted when user music plays and unmuted when user music stops. The muting and unmuting are done by the sound engine internally. You can still define the BGM (BackGround Music) callback to respond to user music behaviors for other useful tasks, such as updating a UI element to notify users of the user music playback status. Use
AkCallbackManager.SetBGMCallback()to register that callback.
Playing user music using the remote-control will trigger an interruption (under the SoloAmbient category) or the BGM event (under the Ambient category), however, stopping user music using the remote-control will trigger a BGM event under all categories. Again, the sound engine takes care of all the audio pipeline tasks regarding such events. The app can register a BGM callback to respond to these events if extra work is needed.
|Note:||The background and foreground switching is handled internally on iOS, no need to call Suspend and WakeupFromSuspend manually on this platform. \endakanote|
Generated on Thu Jan 23 2020 10:26:13 for Wwise Unity Integration Documentation by 1.8.15