Android.Media.Audiofx.Visualizer Members

The members of Android.Media.Audiofx.Visualizer are listed below.

See Also: Inherited members from Java.Lang.Object

Public Constructors

Class constructor.

Protected Constructors

A constructor used when creating managed representations of JNI objects; called by the runtime.

Public Fields

const
AlreadyExistsVisualizerStatus (-2). Internal operation status.
const
ErrorVisualizerStatus (-1). Unspecified error.
const
ErrorBadValueVisualizerStatus (-4). Operation failed due to bad parameter value.
const
ErrorDeadObjectVisualizerStatus (-7). Operation failed due to dead remote object.
const
ErrorInvalidOperationVisualizerStatus (-5). Operation failed because it was requested in wrong state.
const
ErrorNoInitVisualizerStatus (-3). Operation failed due to bad object initialization.
const
ErrorNoMemoryVisualizerStatus (-6). Operation failed due to lack of memory.
const
MeasurementModeNoneVisualizerMeasurementMode (0). Defines a measurement mode in which no measurements are performed.
const
MeasurementModePeakRmsVisualizerMeasurementMode (1). Defines a measurement mode which computes the peak and RMS value in mB, where 0mB is the maximum sample value, and -9600mB is the minimum value.
const
ScalingModeAsPlayedVisualizerScalingMode (1). Defines a capture mode where the playback volume will affect (scale) the range of the captured data.
const
ScalingModeNormalizedVisualizerScalingMode (0). Defines a capture mode where amplification is applied based on the content of the captured data.
const
StateEnabledVisualizerState (2). State of a Visualizer object that is active.
const
StateInitializedVisualizerState (1). State of a Visualizer object that is ready to be used.
const
StateUninitializedVisualizerState (0). State of a Visualizer object that was not successfully initialized upon creation
const
SuccessVisualizerStatus (0). Successful operation.

Public Properties

[read-only]
CaptureSizeint. Returns current capture size.
[read-only]
Enabledbool. Get current activation state of the visualizer.
[read-only]
static
MaxCaptureRateint. Returns the maximum capture rate for the callback capture method.
[read-only]
MeasurementModeVisualizerMeasurementMode. Returns the current measurement modes performed by this audio effect
[read-only]
SamplingRateint. Returns the sampling rate of the captured audio.
[read-only]
ScalingModeVisualizerScalingMode. Returns the current scaling mode on the captured visualization data.

Protected Properties

[read-only]
override
ThresholdClassIntPtr. This API supports the Mono for Android infrastructure and is not intended to be used directly from your code.
[read-only]
override
ThresholdTypeType. This API supports the Mono for Android infrastructure and is not intended to be used directly from your code.

Public Methods

static
GetCaptureSizeRange() : int[]
Returns the capture size range.
GetFft(byte[]) : VisualizerStatus
Returns a frequency capture of currently playing audio content.
GetMeasurementPeakRms(Visualizer.MeasurementPeakRms) : int
Retrieves the latest peak and RMS measurement.
GetWaveForm(byte[]) : VisualizerStatus
Returns a waveform capture of currently playing audio content.
Release()
Releases the native Visualizer resources.
SetCaptureSize(int) : int
Sets the capture size, i.e. the number of bytes returned by Visualizer.GetWaveForm(Byte[]) and Visualizer.GetFft(Byte[]) methods.
SetDataCaptureListener(Visualizer.IOnDataCaptureListener, int, bool, bool) : VisualizerStatus
Registers an OnDataCaptureListener interface and specifies the rate at which the capture should be updated as well as the type of capture requested.
SetEnabled(bool) : VisualizerStatus
Enable or disable the visualization engine.
SetMeasurementMode(VisualizerMeasurementMode) : int
Sets the combination of measurement modes to be performed by this audio effect.
SetScalingMode(VisualizerScalingMode) : int
Set the type of scaling applied on the captured visualization data.