Version

menu_open
Target Platform(s):
Wwise SDK 2019.2.15
Android-Specific AkPlatformInitSettings

This page contains information about the Android-specific initialization settings.

AkThreadProperties threadLEngine Lower engine threading properties.
AkThreadProperties threadOutputMgr Ouput thread threading properties.
AkThreadProperties threadBankManager Bank manager threading properties (its default priority is AK_THREAD_PRIORITY_NORMAL).
AkThreadProperties threadMonitor Monitor threading properties (its default priority is AK_THREAD_PRIORITY_ABOVENORMAL). This parameter is not used in Release build.
AkAudioAPI eAudioAPI Main audio API to use. Leave to AkAudioAPI_Default for the default sink (default value).
AkAudioAPI
AkUInt32 uSampleRate Sampling Rate. Set to 0 to get the native sample rate. Default value is 0.
AkUInt16 uNumRefillsInVoice Number of refill buffers in voice buffer. Defaults to 4.
AkChannelMask uChannelMask use AK_SPEAKER_SETUP_STEREO.
bool bRoundFrameSizeToHWSize Used when hardware-preferred frame size and user-preferred frame size (AkInitSettings.uNumSamplesPerFrame) are not compatible.
If true (default) the sound engine will initialize to a multiple of the HW setting, close to the user setting.
If false, the user setting is used as is, regardless of the HW preference (might incur a performance hit).
SLObjectItf pSLEngine OpenSL engine reference for sharing between various audio components.
JavaVM* pJavaVM Active JavaVM for the app, used for internal system calls. Usually provided through the android_app structure given at startup or the NativeActivity. This parameter needs to be set to allow the sound engine initialization.
jobject jActivity android.app.Activity instance for this application. Usually provided through the android_app structure, or through other means if your application has an overridden activity.

Android-Specific Audio Output API

Use with AkPlatformInitSettings to select the API used for audio output. Use AkAudioAPI_Default, it will select the more appropriate API depending on the computer's capabilities. Other values should be used for testing purposes.

enum AkAudioAPI
AkAudioAPI_AAudio Use AAudio (lower latency, available only for Android 8.1 or above).
AkAudioAPI_OpenSL_ES Use OpenSL ES (older API, compatible with all Android devices).
AkAudioAPI_Default Default value, will select the more appropriate API (AAudio for compatible devices, OpenSL for others).
See also
AK::SoundEngine::Init
AK::SoundEngine::GetDefaultPlatformInitSettings

Was this page helpful?

Need Support?

Questions? Problems? Need more info? Contact us, and we can help!

Visit our Support page

Tell us about your project. We're here to help.

Register your project and we'll help you get started with no strings attached!

Get started with Wwise