Android.Media.AudioManager.GenerateAudioSessionId Method
Return a new audio session identifier not associated with any player or effect.

Syntax

[Android.Runtime.Register("generateAudioSessionId", "()I", "GetGenerateAudioSessionIdHandler")]
public virtual int GenerateAudioSessionId ()

Returns

Documentation for this section has not yet been entered.

Remarks

Return a new audio session identifier not associated with any player or effect. An audio session identifier is a system wide unique identifier for a set of audio streams (one or more mixed together).

The primary use of the audio session ID is to associate audio effects to audio players, such as Android.Media.MediaPlayer or Android.Media.AudioTrack: all audio effects sharing the same audio session ID will be applied to the mixed audio content of the players that share the same audio session.

This method can for instance be used when creating one of the Android.Media.Audiofx.AudioEffect objects to define the audio session of the effect, or to specify a session for a speech synthesis utterance in NoType:android/speech/tts/TextToSpeech$Engine;Href=../../../reference/android/speech/tts/TextToSpeech.Engine.html.

[Android Documentation]

Requirements

Namespace: Android.Media
Assembly: Mono.Android (in Mono.Android.dll)
Assembly Versions: 0.0.0.0
Since: Added in API level 1