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

idThe session ID.

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.

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