LoudnessCodecController


@RequiresApi(value = 35)
@UnstableApi
class LoudnessCodecController


Wrapper class for the platform android.media.LoudnessCodecController.

Summary

Nested types

Interface to intercept and modify loudness parameters before applying them to the codec.

Public constructors

Creates the loudness controller.

Creates the loudness controller.

Public functions

Unit
addMediaCodec(mediaCodec: MediaCodec!)

Adds a codec to be configured by the loudness controller.

Unit

Releases the loudness controller.

Unit

Removes a codec from being configured by the loudness controller.

Unit
setAudioSessionId(audioSessionId: Int)

Configures the loudness controller with an audio session id.

Public constructors

LoudnessCodecController

LoudnessCodecController()

Creates the loudness controller.

LoudnessCodecController

LoudnessCodecController(
    updateListener: LoudnessCodecController.LoudnessParameterUpdateListener!
)

Creates the loudness controller.

Parameters
updateListener: LoudnessCodecController.LoudnessParameterUpdateListener!

The LoudnessParameterUpdateListener to intercept and modify parameters.

Public functions

addMediaCodec

fun addMediaCodec(mediaCodec: MediaCodec!): Unit

Adds a codec to be configured by the loudness controller.

Parameters
mediaCodec: MediaCodec!

A MediaCodec.

release

fun release(): Unit

Releases the loudness controller.

removeMediaCodec

fun removeMediaCodec(mediaCodec: MediaCodec!): Unit

Removes a codec from being configured by the loudness controller.

Parameters
mediaCodec: MediaCodec!

A MediaCodec.

setAudioSessionId

fun setAudioSessionId(audioSessionId: Int): Unit

Configures the loudness controller with an audio session id.

Parameters
audioSessionId: Int

The audio session ID.