AudioTrack.Builder.SetSessionId(Int32) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Sets the session ID the AudioTrack will be attached to.
[Android.Runtime.Register("setSessionId", "(I)Landroid/media/AudioTrack$Builder;", "GetSetSessionId_IHandler", ApiSince=23)]
public virtual Android.Media.AudioTrack.Builder SetSessionId(int sessionId);
[<Android.Runtime.Register("setSessionId", "(I)Landroid/media/AudioTrack$Builder;", "GetSetSessionId_IHandler", ApiSince=23)>]
abstract member SetSessionId : int -> Android.Media.AudioTrack.Builder
override this.SetSessionId : int -> Android.Media.AudioTrack.Builder
Parameters
- sessionId
- Int32
a strictly positive ID number retrieved from another AudioTrack via AudioTrack.getAudioSessionId() or allocated by AudioManager via AudioManager.generateAudioSessionId(), or AudioManager.AUDIO_SESSION_ID_GENERATE. Value is 1 or greater
Returns
the same Builder instance. This value cannot be null.
- Attributes
Remarks
Sets the session ID the AudioTrack will be attached to. Note, that if there's a device specific session id asociated with the context, explicitly setting a session id using this method will override it (see Builder.setContext(Context) ).
Android reference for android.media.AudioTrack.Builder.setSessionId.
Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.