| Modifier and Type | Field and Description |
|---|---|
| public static final int | |
| public static final double | |
| public static final int | |
| private static final float[] | |
| private float[] | |
| private final long | nativeRef
Handle to the native spectrum. |
| private float[] |
| Access | Constructor and Description |
|---|---|
| pack-priv |
| Modifier and Type | Method and Description |
|---|---|
| public int | getBandCount()
Implements com. Gets the number of bands in the audio spectrum |
| public boolean | getEnabled()
Implements com. Returns whether audio spectrum is enabled or not. |
| public double | getInterval()
Implements com. Returns the interval between |
| public float[] | getMagnitudes(float[]
An optionally preallocated double array. mag)Implements com. Returns an array of the last available magnitudes. |
| public float[] | getPhases(float[]
An optionally preallocated double array. phs)Implements com. Returns an array of the last available phases. |
| public int | getSensitivityThreshold()
Implements com. Returns sensitivity threshold in dB. |
| private native boolean | |
| private native double | |
| private native int | |
| private native void | |
| private native void | |
| private native void | |
| private native void | |
| public void | setBandCount(int
integer value bands)Implements com. Sets the number of bands in the audio spectrum |
| public void | setEnabled(boolean enabled)
Implements com. Turns on or off audio spectrum support. |
| public void | setInterval(double
double value interval)Implements com. Set the interval between |
| public void | setSensitivityThreshold(int
int value threshold)Implements com. Sets sensitivity threshold in dB. |
| DEFAULT_BANDS | back to summary |
|---|---|
| public static final int DEFAULT_BANDS | |
| DEFAULT_INTERVAL | back to summary |
|---|---|
| public static final double DEFAULT_INTERVAL | |
| DEFAULT_THRESHOLD | back to summary |
|---|---|
| public static final int DEFAULT_THRESHOLD | |
| EMPTY_FLOAT_ARRAY | back to summary |
|---|---|
| private static final float[] EMPTY_FLOAT_ARRAY | |
| magnitudes | back to summary |
|---|---|
| private float[] magnitudes | |
| nativeRef | back to summary |
|---|---|
| private final long nativeRef Handle to the native spectrum. | |
| phases | back to summary |
|---|---|
| private float[] phases | |
| NativeAudioSpectrum | back to summary |
|---|---|
| pack-priv NativeAudioSpectrum(long refMedia) Constructor. | |
| getBandCount | back to summary |
|---|---|
| public int getBandCount() Implements com. Doc from com. Gets the number of bands in the audio spectrum
| |
| getEnabled | back to summary |
|---|---|
| public boolean getEnabled() Implements com. Doc from com. Returns whether audio spectrum is enabled or not.
| |
| getInterval | back to summary |
|---|---|
| public double getInterval() Implements com. Doc from com. Returns the interval between double value
| |
| getMagnitudes | back to summary |
|---|---|
| public float[] getMagnitudes(float[] mag) Implements com. Doc from com. Returns an array of the last available magnitudes. The size of the array equals
the number of bands set by the
| |
| getPhases | back to summary |
|---|---|
| public float[] getPhases(float[] phs) Implements com. Doc from com. Returns an array of the last available phases. The size of the array equals
the number of bands set by the
| |
| getSensitivityThreshold | back to summary |
|---|---|
| public int getSensitivityThreshold() Implements com. Doc from com. Returns sensitivity threshold in dB. All lower values will be set to this.
| |
| nativeGetEnabled | back to summary |
|---|---|
| private native boolean nativeGetEnabled(long nativeRef) | |
| nativeGetInterval | back to summary |
|---|---|
| private native double nativeGetInterval(long nativeRef) | |
| nativeGetThreshold | back to summary |
|---|---|
| private native int nativeGetThreshold(long nativeRef) | |
| nativeSetBands | back to summary |
|---|---|
| private native void nativeSetBands(long nativeRef, int bands, float[] magnitudes, float[] phases) | |
| nativeSetEnabled | back to summary |
|---|---|
| private native void nativeSetEnabled(long nativeRef, boolean enable) | |
| nativeSetInterval | back to summary |
|---|---|
| private native void nativeSetInterval(long nativeRef, double interval) | |
| nativeSetThreshold | back to summary |
|---|---|
| private native void nativeSetThreshold(long nativeRef, int threshold) | |
| setBandCount | back to summary |
|---|---|
| public void setBandCount(int bands) Implements com. Doc from com. Sets the number of bands in the audio spectrum
| |
| setEnabled | back to summary |
|---|---|
| public void setEnabled(boolean enabled) Implements com. Doc from com. Turns on or off audio spectrum support.
| |
| setInterval | back to summary |
|---|---|
| public void setInterval(double interval) Implements com. Doc from com. Set the interval between double value
| |
| setSensitivityThreshold | back to summary |
|---|---|
| public void setSensitivityThreshold(int threshold) Implements com. Doc from com. Sets sensitivity threshold in dB. All lower values will be set to this. Allowed values: <= 0
| |