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: AudioFormat.ENCODING_DEFAULT AudioFormat.ENCODING_PCM_16BIT AudioFormat.ENCODING_PCM_8BIT AudioFormat.ENCODING_PCM_FLOAT AudioFormat.ENCODING_AC3 AudioFormat.ENCODING_E_AC3 AudioFormat.ENCODING_DTS AudioFormat.ENCODING_DTS_HD AudioFormat.ENCODING_MP3 AudioFormat.ENCODING_AAC_LC AudioFormat.ENCODING_AAC_HE_V1 AudioFormat.ENCODING_AAC_HE_V2 AudioFormat.ENCODING_IEC61937 AudioFormat.ENCODING_DOLBY_TRUEHD AudioFormat.ENCODING_AAC_ELD AudioFormat.ENCODING_AAC_XHE AudioFormat.ENCODING_AC4 AudioFormat.ENCODING_AC4_L4 AudioFormat.ENCODING_E_AC3_JOC AudioFormat.ENCODING_DOLBY_MAT AudioFormat.ENCODING_OPUS AudioFormat.ENCODING_PCM_24BIT_PACKED AudioFormat.ENCODING_PCM_32BIT AudioFormat.ENCODING_MPEGH_BL_L3 AudioFormat.ENCODING_MPEGH_BL_L4 AudioFormat.ENCODING_MPEGH_LC_L3 AudioFormat.ENCODING_MPEGH_LC_L4 AudioFormat.ENCODING_DTS_UHD_P1 AudioFormat.ENCODING_DRA AudioFormat.ENCODING_DTS_HD_MA AudioFormat.ENCODING_DTS_UHD_P2 AudioFormat.ENCODING_DSD AudioFormat.ENCODING_IAMF_BASE_ENHANCED_PROFILE_AAC AudioFormat.ENCODING_IAMF_BASE_ENHANCED_PROFILE_FLAC AudioFormat.ENCODING_IAMF_BASE_ENHANCED_PROFILE_OPUS AudioFormat.ENCODING_IAMF_BASE_ENHANCED_PROFILE_PCM AudioFormat.ENCODING_IAMF_BASE_PROFILE_AAC AudioFormat.ENCODING_IAMF_BASE_PROFILE_FLAC AudioFormat.ENCODING_IAMF_BASE_PROFILE_OPUS AudioFormat.ENCODING_IAMF_BASE_PROFILE_PCM AudioFormat.ENCODING_IAMF_SIMPLE_PROFILE_AAC AudioFormat.ENCODING_IAMF_SIMPLE_PROFILE_FLAC AudioFormat.ENCODING_IAMF_SIMPLE_PROFILE_OPUS AudioFormat.ENCODING_IAMF_SIMPLE_PROFILE_PCM
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.