public final class AuxEffectInfo extends Object
Auxiliary effects can only be applied if the application has the
android.permission.MODIFY_AUDIO_SETTINGS permission. Apps are responsible for retaining the
associated audio effect instance and releasing it when it's no longer needed. See the
AudioEffect for more information.
|Modifier and Type||Field and Description|
The identifier of the effect, or
The send level for the effect.
|Constructor and Description|
Creates an instance with the given effect identifier and send level.
public static final int NO_AUX_EFFECT_ID
effectIdrepresenting no auxiliary effect.
public final int effectId
NO_AUX_EFFECT_IDif there is no effect.
public final float sendLevel
public AuxEffectInfo(int effectId, float sendLevel)
effectId- The effect identifier. This is the value returned by
AudioEffect.getId()on the effect, or 0 which represents no effect. This value is passed to
AudioTrack.attachAuxEffect(int)on the underlying audio track.
sendLevel- The send level for the effect, where 0 represents no effect and a value of 1 is full send. If
effectIdis not 0, this value is passed to
AudioTrack.setAuxEffectSendLevel(float)on the underlying audio track.