AudioFormat.Builder.SetEncoding(Encoding) 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 data encoding format.
[Android.Runtime.Register("setEncoding", "(I)Landroid/media/AudioFormat$Builder;", "GetSetEncoding_IHandler")]
public virtual Android.Media.AudioFormat.Builder? SetEncoding(Android.Media.Encoding encoding);
[<Android.Runtime.Register("setEncoding", "(I)Landroid/media/AudioFormat$Builder;", "GetSetEncoding_IHandler")>]
abstract member SetEncoding : Android.Media.Encoding -> Android.Media.AudioFormat.Builder
override this.SetEncoding : Android.Media.Encoding -> Android.Media.AudioFormat.Builder
Parameters
- encoding
- Encoding
the specified encoding or default. Value is one of the following: Default Pcm16bit Pcm8bit PcmFloat Ac3 EAc3 Dts DtsHd Mp3 AacLc AacHeV1 AacHeV2 Iec61937 DolbyTruehd AacEld AacXhe Ac4 Ac4L4 EAc3Joc DolbyMat Opus Pcm24bitPacked Pcm32bit MpeghBlL3 MpeghBlL4 MpeghLcL3 MpeghLcL4 DtsUhdP1 Dra DtsHdMa DtsUhdP2 Dsd IamfBaseEnhancedProfileAac IamfBaseEnhancedProfileFlac IamfBaseEnhancedProfileOpus IamfBaseEnhancedProfilePcm IamfBaseProfileAac IamfBaseProfileFlac IamfBaseProfileOpus IamfBaseProfilePcm IamfSimpleProfileAac IamfSimpleProfileFlac IamfSimpleProfileOpus IamfSimpleProfilePcm
Returns
the same Builder instance.
- Attributes
Remarks
Sets the data encoding format.
Android reference for android.media.AudioFormat.Builder.setEncoding.
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.