BASS_CONFIG_ANDROID_SESSIONID config option
The audio session ID to use for output on Android.
BASS_SetConfig(
BASS_CONFIG_ANDROID_SESSIONID,
DWORD id
);
Parameters
id | The session ID... 0 = automatically allocate a session ID, -1 = none.
|
Remarks
This option allows a session ID to be specified for BASS to use with AAudio or AudioTrack output (OpenSL ES is not affected). The session ID can then be used to apply Android's AudioEffect-based effects on the BASS output (and anything else that uses the same session ID). The AudioManager generateAudioSessionId method can be used to generate a session ID for this. Using a session ID (specifically or automatically) may result in higher latency.
The default setting is 0 (automatically allocate a session ID). Changes take effect from the next BASS_Init call.
Platform-specific
This config option is only available on Android.
See also
BASS_GetConfig, BASS_SetConfig, BASS_Init