AudioTrack.Builder.SetEncapsulationMode(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 encapsulation mode.
[Android.Runtime.Register("setEncapsulationMode", "(I)Landroid/media/AudioTrack$Builder;", "GetSetEncapsulationMode_IHandler", ApiSince=30)]
public virtual Android.Media.AudioTrack.Builder SetEncapsulationMode(int encapsulationMode);
[<Android.Runtime.Register("setEncapsulationMode", "(I)Landroid/media/AudioTrack$Builder;", "GetSetEncapsulationMode_IHandler", ApiSince=30)>]
abstract member SetEncapsulationMode : int -> Android.Media.AudioTrack.Builder
override this.SetEncapsulationMode : int -> Android.Media.AudioTrack.Builder
Parameters
- encapsulationMode
- Int32
The encapsulation mode. Public values include None and ElementaryStream, cast to int.
Returns
the same Builder instance. This value cannot be null.
- Attributes
Remarks
Sets the encapsulation mode. Encapsulation mode allows metadata to be sent together with the audio data payload in a ByteBuffer. This requires a compatible hardware audio codec.
Android reference for android.media.AudioTrack.Builder.setEncapsulationMode.
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.