Share via


MediaFormat.KeyMaxOutputChannelCount Field

Definition

A key describing the maximum number of channels that can be output by an audio decoder.

[Android.Runtime.Register("KEY_MAX_OUTPUT_CHANNEL_COUNT", ApiSince=32)]
public const string KeyMaxOutputChannelCount;
[<Android.Runtime.Register("KEY_MAX_OUTPUT_CHANNEL_COUNT", ApiSince=32)>]
val mutable KeyMaxOutputChannelCount : string

Field Value

Attributes

Remarks

A key describing the maximum number of channels that can be output by an audio decoder. By default, the decoder will output the same number of channels as present in the encoded stream, if supported. Set this value to limit the number of output channels, and use the downmix information in the stream, if available.

Values larger than the number of channels in the content to decode behave like the number of channels in the content (if applicable), for instance passing 99 for a 5.1 audio stream behaves like passing 6.

This key is only used during decoding.

Java documentation for android.media.MediaFormat.KEY_MAX_OUTPUT_CHANNEL_COUNT.

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.

Applies to