java.lang.Object | |
↳ | com.h6ah4i.android.media.standard.audiofx.StandardEnvironmentalReverb |
Constants | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
String | TAG |
[Expand]
Inherited Constants | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
From interface
com.h6ah4i.android.media.audiofx.IAudioEffect
| |||||||||||
From interface
com.h6ah4i.android.media.audiofx.IEnvironmentalReverb
|
Public Constructors | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
StandardEnvironmentalReverb(int priority, int audioSession) |
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
short |
getDecayHFRatio()
Gets the ratio of high frequency decay time (at 5 kHz) relative to low
frequencies.
| ||||||||||
int |
getDecayTime()
Gets the decay time.
| ||||||||||
short |
getDensity()
Gets the density level.
| ||||||||||
short |
getDiffusion()
Gets diffusion level.
| ||||||||||
boolean |
getEnabled()
Returns effect enabled state
| ||||||||||
EnvironmentalReverb |
getEnvironmentalReverb()
Get underlying EnvironmentalReverb instance.
| ||||||||||
int |
getId()
Returns effect unique identifier.
| ||||||||||
IEnvironmentalReverb.Settings |
getProperties()
Gets the environmental reverb properties.
| ||||||||||
int |
getReflectionsDelay()
Gets the reflections delay.
| ||||||||||
short |
getReflectionsLevel()
Gets the volume level of the early reflections.
| ||||||||||
int |
getReverbDelay()
Gets the reverb delay.
| ||||||||||
short |
getReverbLevel()
Gets the reverb level.
| ||||||||||
short |
getRoomHFLevel()
Gets the room HF level.
| ||||||||||
short |
getRoomLevel()
Gets the master volume level of the environmental reverb effect.
| ||||||||||
boolean |
hasControl()
Checks if this AudioEffect object is controlling the effect engine.
| ||||||||||
void |
release()
Releases the native AudioEffect resources.
| ||||||||||
void |
setControlStatusListener(IAudioEffect.OnControlStatusChangeListener listener)
Sets the listener AudioEffect notifies when the effect engine control is
taken or returned.
| ||||||||||
void |
setDecayHFRatio(short decayHFRatio)
Sets the ratio of high frequency decay time (at 5 kHz) relative to the
decay time at low frequencies.
| ||||||||||
void |
setDecayTime(int decayTime)
Sets the time taken for the level of reverberation to decay by 60 dB.
| ||||||||||
void |
setDensity(short density)
Controls the modal density of the late reverberation decay.
| ||||||||||
void |
setDiffusion(short diffusion)
Sets the echo density in the late reverberation decay.
| ||||||||||
void |
setEnableStatusListener(IAudioEffect.OnEnableStatusChangeListener listener)
Sets the listener AudioEffect notifies when the effect engine is enabled
or disabled.
| ||||||||||
int |
setEnabled(boolean enabled)
Enable or disable the effect.
| ||||||||||
void |
setParameterListener(IEnvironmentalReverb.OnParameterChangeListener listener)
Registers an OnParameterChangeListener interface.
| ||||||||||
void |
setProperties(IEnvironmentalReverb.Settings settings)
Sets the environmental reverb properties.
| ||||||||||
void |
setReflectionsDelay(int reflectionsDelay)
Sets the delay time for the early reflections.
| ||||||||||
void |
setReflectionsLevel(short reflectionsLevel)
Sets the volume level of the early reflections.
| ||||||||||
void |
setReverbDelay(int reverbDelay)
Sets the time between the first reflection and the reverberation.
| ||||||||||
void |
setReverbLevel(short reverbLevel)
Sets the volume level of the late reverberation.
| ||||||||||
void |
setRoomHFLevel(short roomHF)
Sets the volume level at 5 kHz relative to the volume level at low
frequencies of the overall reverb effect.
| ||||||||||
void |
setRoomLevel(short room)
Sets the master volume level of the environmental reverb effect.
|
Protected Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
void | checkIsNotReleased() | ||||||||||
void | checkIsNotReleased(String methodName) | ||||||||||
AudioEffect | getAudioEffect() | ||||||||||
void | workaroundPrevReleaseSync() |
[Expand]
Inherited Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
From class
java.lang.Object
| |||||||||||
From interface
com.h6ah4i.android.media.IReleasable
| |||||||||||
From interface
com.h6ah4i.android.media.audiofx.IAudioEffect
| |||||||||||
From interface
com.h6ah4i.android.media.audiofx.IEnvironmentalReverb
|
IllegalArgumentException | |
---|---|
IllegalStateException | |
RuntimeException | |
UnsupportedOperationException |
Gets the ratio of high frequency decay time (at 5 kHz) relative to low frequencies.
setDecayHFRatio(short)
for
units.IllegalArgumentException | |
---|---|
IllegalStateException | |
UnsupportedOperationException |
Gets the decay time.
IllegalArgumentException | |
---|---|
IllegalStateException | |
UnsupportedOperationException |
Gets the density level.
setDiffusion(short)
for units.IllegalArgumentException | |
---|---|
IllegalStateException | |
UnsupportedOperationException |
Gets diffusion level.
setDiffusion(short)
for units.IllegalArgumentException | |
---|---|
IllegalStateException | |
UnsupportedOperationException |
Returns effect enabled state
IllegalStateException |
---|
Get underlying EnvironmentalReverb instance.
Returns effect unique identifier. This system wide unique identifier can be used to attach this effect to a MediaPlayer or an AudioTrack when the effect is an auxiliary effect (Reverb)
IllegalStateException |
---|
Gets the environmental reverb properties. This method is useful when a snapshot of current reverb settings must be saved by the application.
IllegalArgumentException | |
---|---|
IllegalStateException | |
UnsupportedOperationException |
Gets the reflections delay.
IllegalArgumentException | |
---|---|
IllegalStateException | |
UnsupportedOperationException |
Gets the volume level of the early reflections.
IllegalArgumentException | |
---|---|
IllegalStateException | |
UnsupportedOperationException |
Gets the reverb delay.
IllegalArgumentException | |
---|---|
IllegalStateException | |
UnsupportedOperationException |
Gets the reverb level.
IllegalArgumentException | |
---|---|
IllegalStateException | |
UnsupportedOperationException |
Gets the room HF level.
IllegalArgumentException | |
---|---|
IllegalStateException | |
UnsupportedOperationException |
Gets the master volume level of the environmental reverb effect.
IllegalArgumentException | |
---|---|
IllegalStateException | |
UnsupportedOperationException |
Checks if this AudioEffect object is controlling the effect engine.
IllegalStateException |
---|
Releases the native AudioEffect resources. It is a good practice to release the effect engine when not in use as control can be returned to other applications or the native resources released.
Sets the listener AudioEffect notifies when the effect engine control is taken or returned.
IllegalStateException |
---|
Sets the ratio of high frequency decay time (at 5 kHz) relative to the decay time at low frequencies.
decayHFRatio | high frequency decay ratio using a permille scale. The valid range is [100, 2000]. A ratio of 1000 indicates that all frequencies decay at the same rate. |
---|
IllegalArgumentException | |
---|---|
IllegalStateException | |
UnsupportedOperationException |
Sets the time taken for the level of reverberation to decay by 60 dB.
decayTime | decay time in milliseconds. The valid range is [100, 20000]. |
---|
IllegalArgumentException | |
---|---|
IllegalStateException | |
UnsupportedOperationException |
Controls the modal density of the late reverberation decay.
The scale should approximately map linearly to the perceived change in reverberation. A lower density creates a hollow sound that is useful for simulating small reverberation spaces such as bathrooms.
density | density specified using a permille scale. The valid range is [0, 1000]. A value of 1000 o/oo indicates a natural sounding reverberation. Values below this level produce a more colored effect. |
---|
IllegalArgumentException | |
---|---|
IllegalStateException | |
UnsupportedOperationException |
Sets the echo density in the late reverberation decay.
The scale should approximately map linearly to the perceived change in reverberation.
diffusion | diffusion specified using a permille scale. The diffusion valid range is [0, 1000]. A value of 1000 o/oo indicates a smooth reverberation decay. Values below this level give a more grainy character. |
---|
IllegalArgumentException | |
---|---|
IllegalStateException | |
UnsupportedOperationException |
Sets the listener AudioEffect notifies when the effect engine is enabled or disabled.
IllegalStateException |
---|
Enable or disable the effect. Creating an audio effect does not automatically apply this effect on the audio source. It creates the resources necessary to process this effect but the audio signal is still bypassed through the effect engine. Calling this method will make that the effect is actually applied or not to the audio content being played in the corresponding audio session.
enabled | the requested enable state |
---|
SUCCESS
in case of success,
ERROR_INVALID_OPERATION
or ERROR_DEAD_OBJECT
in
case of failure.IllegalStateException |
---|
Registers an OnParameterChangeListener interface.
listener | OnParameterChangeListener interface registered |
---|
Sets the environmental reverb properties. This method is useful when reverb settings have to be applied from a previous backup.
settings | a IEnvironmentalReverb.Settings object containing the properties to apply |
---|
IllegalArgumentException | |
---|---|
IllegalStateException | |
UnsupportedOperationException |
Sets the delay time for the early reflections.
This method sets the time between when the direct path is heard and when the first reflection is heard.
reflectionsDelay | reflections delay in milliseconds. The valid range is [0, 300]. |
---|
IllegalArgumentException | |
---|---|
IllegalStateException | |
UnsupportedOperationException |
Sets the volume level of the early reflections.
This level is combined with the overall room level (set using
setRoomLevel(short)
).
reflectionsLevel | reflection level in millibels. The valid range is [-9000, 1000]. |
---|
IllegalArgumentException | |
---|---|
IllegalStateException | |
UnsupportedOperationException |
Sets the time between the first reflection and the reverberation.
reverbDelay | reverb delay in milliseconds. The valid range is [0, 100]. |
---|
IllegalArgumentException | |
---|---|
IllegalStateException | |
UnsupportedOperationException |
Sets the volume level of the late reverberation.
This level is combined with the overall room level (set using
setRoomLevel(short)
).
reverbLevel | reverb level in millibels. The valid range is [-9000, 2000]. |
---|
IllegalArgumentException | |
---|---|
IllegalStateException | |
UnsupportedOperationException |
Sets the volume level at 5 kHz relative to the volume level at low frequencies of the overall reverb effect.
This controls a low-pass filter that will reduce the level of the high-frequency.
roomHF | high frequency attenuation level in millibels. The valid range is [-9000, 0]. |
---|
IllegalArgumentException | |
---|---|
IllegalStateException | |
UnsupportedOperationException |
Sets the master volume level of the environmental reverb effect.
room | room level in millibels. The valid range is [-9000, 0]. |
---|
IllegalArgumentException | |
---|---|
IllegalStateException | |
UnsupportedOperationException |