getAudioSessionId

actual fun getAudioSessionId(): Int
expect fun getAudioSessionId(): Int

Get the shared audio session ID for coordinating player and recorder.

On Android: Returns a shared session ID that both player and recorder should use. This enables acoustic echo cancellation (AEC) to work properly by ensuring the player and recorder share the same audio session. The AEC needs to know which playback stream to cancel, and it identifies this by session ID.

On iOS: Returns 0 (iOS handles audio sessions differently via AVAudioSession).

Return

The shared audio session ID, or a platform-specific default if not configured.

actual fun getAudioSessionId(): Int