Language

LoudnessCodecController.LoudnessCodecUpdateHandler Delegate

Definition

Customizes loudness parameters before they are sent to a decoder.

public delegate Android.OS.Bundle LoudnessCodecController.LoudnessCodecUpdateHandler(MediaCodec mediaCodec, Bundle codecValues);
type LoudnessCodecController.LoudnessCodecUpdateHandler = delegate of MediaCodec * Bundle -> Bundle

Parameters

mediaCodec
MediaCodec

The decoder targeted by this loudness-parameter update.

codecValues
Bundle

The suggested parameter bundle that the callback can adjust before returning its chosen values.

Return Value

A non-null bundle containing the parameter values chosen for the update.

Remarks

On Android API 37.2, the dispatcher keeps only its recognized AAC dynamic-range-control keys from the returned bundle. It skips the codec parameter update when that filtered bundle is empty.

Applies to