Share via


Visualizer.GetWaveForm(Byte[]) Method

Definition

Returns a waveform capture of currently playing audio content.

[Android.Runtime.Register("getWaveForm", "([B)I", "GetGetWaveForm_arrayBHandler")]
public virtual Android.Media.Audiofx.VisualizerStatus GetWaveForm (byte[]? waveform);
[<Android.Runtime.Register("getWaveForm", "([B)I", "GetGetWaveForm_arrayBHandler")>]
abstract member GetWaveForm : byte[] -> Android.Media.Audiofx.VisualizerStatus
override this.GetWaveForm : byte[] -> Android.Media.Audiofx.VisualizerStatus

Parameters

waveform
Byte[]

array of bytes where the waveform should be returned

Returns

#SUCCESS in case of success, #ERROR_NO_MEMORY, #ERROR_INVALID_OPERATION or #ERROR_DEAD_OBJECT in case of failure.

Attributes

Exceptions

Remarks

Returns a waveform capture of currently playing audio content. The capture consists in a number of consecutive 8-bit (unsigned) mono PCM samples equal to the capture size returned by #getCaptureSize().

This method must be called when the Visualizer is enabled.

Java documentation for android.media.audiofx.Visualizer.getWaveForm(byte[]).

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