# LoudnessCodecController.OnLoudnessCodecUpdateListener

Added in[API level 35](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)  

# LoudnessCodecController.OnLoudnessCodecUpdateListener

*** ** * ** ***

[Kotlin](https://developer.android.com/reference/kotlin/android/media/LoudnessCodecController.OnLoudnessCodecUpdateListener "View this page in Kotlin")\|Java

`
public
static


interface
LoudnessCodecController.OnLoudnessCodecUpdateListener
`  
`


`

|---------------------------------------------------------------------|
| android.media.LoudnessCodecController.OnLoudnessCodecUpdateListener |

<br />

*** ** * ** ***

Listener used for receiving asynchronous loudness metadata updates.

## Summary

|                                                                                                                                                                                                                                                                                                                                                                   ### Public methods                                                                                                                                                                                                                                                                                                                                                                    ||
|--------------------------------------------------------------------------------|-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| ` default `[Bundle](https://developer.android.com/reference/android/os/Bundle) | ` `[onLoudnessCodecUpdate](https://developer.android.com/reference/android/media/LoudnessCodecController.OnLoudnessCodecUpdateListener#onLoudnessCodecUpdate(android.media.MediaCodec,%20android.os.Bundle))`(`[MediaCodec](https://developer.android.com/reference/android/media/MediaCodec)` mediaCodec, `[Bundle](https://developer.android.com/reference/android/os/Bundle)` codecValues) ` Contains the MediaCodec key/values that can be set directly to configure the loudness of the handle's corresponding decoder (see[MediaCodec.setParameters(Bundle)](https://developer.android.com/reference/android/media/MediaCodec#setParameters(android.os.Bundle))). |

## Public methods

### onLoudnessCodecUpdate

Added in[API level 35](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)  

```
public Bundle onLoudnessCodecUpdate (MediaCodec mediaCodec, 
                Bundle codecValues)
```

Contains the MediaCodec key/values that can be set directly to configure the loudness of the handle's corresponding decoder (see[MediaCodec.setParameters(Bundle)](https://developer.android.com/reference/android/media/MediaCodec#setParameters(android.os.Bundle))).

<br />

|                                                                                                           Parameters                                                                                                            ||
|---------------|------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| `mediaCodec`  | `MediaCodec`: the mediaCodec that will receive the new parameters <br />                                                                                                                                         |
| `codecValues` | `Bundle`: contains loudness key/value pairs that can be set directly on the mediaCodec. The listener can modify these values with their own edits which will be returned for the mediaCodec configuration <br /> |

|                                                                                                                          Returns                                                                                                                          ||
|---------------------------------------------------------------------|--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| [Bundle](https://developer.android.com/reference/android/os/Bundle) | a Bundle which contains the original computed codecValues aggregated with user edits. The platform will configure the associated MediaCodecs with the returned Bundle params. <br /> |