Fields Summary |
---|
private static final String | TAG |
public static final int | PARAM_PRESETPreset. Parameter ID for
{@link android.media.audiofx.PresetReverb.OnParameterChangeListener} |
public static final short | PRESET_NONENo reverb or reflections |
public static final short | PRESET_SMALLROOMReverb preset representing a small room less than five meters in length |
public static final short | PRESET_MEDIUMROOMReverb preset representing a medium room with a length of ten meters or less |
public static final short | PRESET_LARGEROOMReverb preset representing a large-sized room suitable for live performances |
public static final short | PRESET_MEDIUMHALLReverb preset representing a medium-sized hall |
public static final short | PRESET_LARGEHALLReverb preset representing a large-sized hall suitable for a full orchestra |
public static final short | PRESET_PLATEReverb preset representing a synthesis of the traditional plate reverb |
private OnParameterChangeListener | mParamListenerRegistered listener for parameter changes. |
private BaseParameterListener | mBaseParamListenerListener used internally to to receive raw parameter change event from AudioEffect super class |
private final Object | mParamListenerLockLock for access to mParamListener |
Methods Summary |
---|
public short | getPreset()Gets current reverb preset.
short[] value = new short[1];
checkStatus(getParameter(PARAM_PRESET, value));
return value[0];
|
public android.media.audiofx.PresetReverb$Settings | getProperties()Gets the preset reverb properties. This method is useful when a snapshot of current
preset reverb settings must be saved by the application.
Settings settings = new Settings();
short[] value = new short[1];
checkStatus(getParameter(PARAM_PRESET, value));
settings.preset = value[0];
return settings;
|
public void | setParameterListener(android.media.audiofx.PresetReverb$OnParameterChangeListener listener)Registers an OnParameterChangeListener interface.
synchronized (mParamListenerLock) {
if (mParamListener == null) {
mParamListener = listener;
mBaseParamListener = new BaseParameterListener();
super.setParameterListener(mBaseParamListener);
}
}
|
public void | setPreset(short preset)Enables a preset on the reverb.
The reverb PRESET_NONE disables any reverb from the current output but does not free the
resources associated with the reverb. For an application to signal to the implementation
to free the resources, it must call the release() method.
checkStatus(setParameter(PARAM_PRESET, preset));
|
public void | setProperties(android.media.audiofx.PresetReverb$Settings settings)Sets the preset reverb properties. This method is useful when preset reverb settings have to
be applied from a previous backup.
checkStatus(setParameter(PARAM_PRESET, settings.preset));
|