AudioTrack.IOnCodecFormatChangedListener.OnCodecFormatChanged Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Called when the compressed codec format changes.
[Android.Runtime.Register("onCodecFormatChanged", "(Landroid/media/AudioTrack;Landroid/media/AudioMetadataReadMap;)V", "GetOnCodecFormatChanged_Landroid_media_AudioTrack_Landroid_media_AudioMetadataReadMap_Handler:Android.Media.AudioTrack/IOnCodecFormatChangedListenerInvoker, Mono.Android, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null", ApiSince=30)]
public void OnCodecFormatChanged (Android.Media.AudioTrack audioTrack, Android.Media.IAudioMetadataReadMap? info);
[<Android.Runtime.Register("onCodecFormatChanged", "(Landroid/media/AudioTrack;Landroid/media/AudioMetadataReadMap;)V", "GetOnCodecFormatChanged_Landroid_media_AudioTrack_Landroid_media_AudioMetadataReadMap_Handler:Android.Media.AudioTrack/IOnCodecFormatChangedListenerInvoker, Mono.Android, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null", ApiSince=30)>]
abstract member OnCodecFormatChanged : Android.Media.AudioTrack * Android.Media.IAudioMetadataReadMap -> unit
Parameters
- audioTrack
- AudioTrack
is the AudioTrack
instance associated with the codec.
is a AudioMetadataReadMap
of values which contains decoded format
changes reported by the codec. Not all hardware
codecs indicate codec format changes. Acceptable keys are taken from
AudioMetadata.Format.KEY_*
range, with the associated value type.
- Attributes
Remarks
Called when the compressed codec format changes.
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.