Taal

Visualizer.FftDataCaptureEventArgs(Visualizer, Byte[], Int32) Constructor

Definition

Initializes event data with the supplied frequency capture.

public FftDataCaptureEventArgs(Android.Media.Audiofx.Visualizer? visualizer, byte[]? fft, int samplingRate);
new Android.Media.Audiofx.Visualizer.FftDataCaptureEventArgs : Android.Media.Audiofx.Visualizer * byte[] * int -> Android.Media.Audiofx.Visualizer.FftDataCaptureEventArgs

Parameters

visualizer
Visualizer

The Visualizer that produced the capture.

fft
Byte[]

The packed FFT bytes. The first two bytes contain the real DC and Nyquist components. The remaining bytes contain real and imaginary pairs for increasing frequencies. Interpret each component as a signed 8-bit value. See GetFft(Byte[]).

samplingRate
Int32

The sample rate of the captured audio in millihertz, not the event delivery rate.

Remarks

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