Added in API level 30
    OnCodecFormatChangedListener
interface OnCodecFormatChangedListener
| android.media.AudioTrack.OnCodecFormatChangedListener | 
Interface definition for a listener for codec format changes.
Summary
| Public methods | |
|---|---|
| abstract Unit | onCodecFormatChanged(audioTrack: AudioTrack, info: AudioMetadataReadMap?)Called when the compressed codec format changes. | 
Public methods
onCodecFormatChanged
Added in API level 30
      abstract fun onCodecFormatChanged(
audioTrack: AudioTrack,
info: AudioMetadataReadMap?
): Unit
Called when the compressed codec format changes.
| Parameters | |
|---|---|
| audioTrack | AudioTrack: is the AudioTrackinstance associated with the codec. This value cannot benull. | 
| info | AudioMetadataReadMap?: is a AudioMetadataReadMapof values which contains decoded format changes reported by the codec. Not all hardware codecs indicate codec format changes. Acceptable keys are taken fromAudioMetadata.Format.KEY_*range, with the associated value type. This value may benull. | 
