public class Visualizer extends Object
| Modifier and Type | Class and Description |
|---|---|
static interface |
Visualizer.OnDataCaptureListener |
| Modifier and Type | Field and Description |
|---|---|
static int |
ALREADY_EXISTS |
static int |
ERROR |
static int |
ERROR_BAD_VALUE |
static int |
ERROR_DEAD_OBJECT |
static int |
ERROR_INVALID_OPERATION |
static int |
ERROR_NO_INIT |
static int |
ERROR_NO_MEMORY |
static int |
SCALING_MODE_AS_PLAYED |
static int |
SCALING_MODE_NORMALIZED |
static int |
STATE_ENABLED |
static int |
STATE_INITIALIZED |
static int |
STATE_UNINITIALIZED |
static int |
SUCCESS |
| Constructor and Description |
|---|
Visualizer(int audioSession) |
| Modifier and Type | Method and Description |
|---|---|
protected void |
finalize() |
int |
getCaptureSize() |
static int[] |
getCaptureSizeRange() |
boolean |
getEnabled() |
int |
getFft(byte[] fft) |
static int |
getMaxCaptureRate() |
int |
getSamplingRate() |
int |
getScalingMode() |
int |
getWaveForm(byte[] waveform) |
void |
release() |
int |
setCaptureSize(int size) |
int |
setDataCaptureListener(Visualizer.OnDataCaptureListener listener,
int rate,
boolean waveform,
boolean fft) |
int |
setEnabled(boolean enabled) |
int |
setScalingMode(int mode) |
public static final int STATE_UNINITIALIZED
public static final int STATE_INITIALIZED
public static final int STATE_ENABLED
public static final int SCALING_MODE_NORMALIZED
public static final int SCALING_MODE_AS_PLAYED
public static final int SUCCESS
public static final int ERROR
public static final int ALREADY_EXISTS
public static final int ERROR_NO_INIT
public static final int ERROR_BAD_VALUE
public static final int ERROR_INVALID_OPERATION
public static final int ERROR_NO_MEMORY
public static final int ERROR_DEAD_OBJECT
public Visualizer(int audioSession)
throws UnsupportedOperationException,
RuntimeException
public void release()
public int setEnabled(boolean enabled)
throws IllegalStateException
IllegalStateExceptionpublic boolean getEnabled()
public static int[] getCaptureSizeRange()
public static int getMaxCaptureRate()
public int setCaptureSize(int size)
throws IllegalStateException
IllegalStateExceptionpublic int getCaptureSize()
throws IllegalStateException
IllegalStateExceptionpublic int setScalingMode(int mode)
throws IllegalStateException
IllegalStateExceptionpublic int getScalingMode()
throws IllegalStateException
IllegalStateExceptionpublic int getSamplingRate()
throws IllegalStateException
IllegalStateExceptionpublic int getWaveForm(byte[] waveform)
throws IllegalStateException
IllegalStateExceptionpublic int getFft(byte[] fft)
throws IllegalStateException
IllegalStateExceptionpublic int setDataCaptureListener(Visualizer.OnDataCaptureListener listener, int rate, boolean waveform, boolean fft)
Copyright © 2008-2013. All Rights Reserved.