AudioDeviceInfo.GetEncodings 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.
[Android.Runtime.Register("getEncodings", "()[I", "", ApiSince=23)]
public Android.Media.Encoding[] GetEncodings ();
[<Android.Runtime.Register("getEncodings", "()[I", "", ApiSince=23)>]
member this.GetEncodings : unit -> Android.Media.Encoding[]
Returns
An array of audio encodings (e.g. AudioFormat#ENCODING_PCM_16BIT
,
AudioFormat#ENCODING_PCM_FLOAT
) supported by the audio device.
ENCODING_PCM_FLOAT
indicates the device supports more
than 16 bits of integer precision. As there is no AudioFormat constant
specifically defined for 24-bit PCM, the value ENCODING_PCM_FLOAT
indicates that AudioTrack
or AudioRecord
can preserve at least 24 bits of
integer precision to that device.
- Attributes
Remarks
Java documentation for android.media.AudioDeviceInfo.getEncodings()
.
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.