Visualizer.IOnDataCaptureListener.OnWaveFormDataCapture Method

Definition

Method called when a new waveform capture is available.

[Android.Runtime.Register("onWaveFormDataCapture", "(Landroid/media/audiofx/Visualizer;[BI)V", "GetOnWaveFormDataCapture_Landroid_media_audiofx_Visualizer_arrayBIHandler:Android.Media.Audiofx.Visualizer/IOnDataCaptureListenerInvoker, Mono.Android, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null")]
public void OnWaveFormDataCapture (Android.Media.Audiofx.Visualizer? visualizer, byte[]? waveform, int samplingRate);
[<Android.Runtime.Register("onWaveFormDataCapture", "(Landroid/media/audiofx/Visualizer;[BI)V", "GetOnWaveFormDataCapture_Landroid_media_audiofx_Visualizer_arrayBIHandler:Android.Media.Audiofx.Visualizer/IOnDataCaptureListenerInvoker, Mono.Android, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null")>]
abstract member OnWaveFormDataCapture : Android.Media.Audiofx.Visualizer * byte[] * int -> unit

Parameters

visualizer
Visualizer

Visualizer object on which the listener is registered.

waveform
Byte[]

array of bytes containing the waveform representation.

samplingRate
Int32

sampling rate of the visualized audio.

Attributes

Remarks

Method called when a new waveform capture is available.

Data in the waveform buffer is valid only within the scope of the callback. Applications which need access to the waveform data after returning from the callback should make a copy of the data instead of holding a reference.

Java documentation for android.media.audiofx.Visualizer.OnDataCaptureListener.onWaveFormDataCapture(android.media.audiofx.Visualizer, byte[], int).

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.

Applies to