|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
An Effectable object is simply one that can have
AudioEffects attached to it. As with an audio track in a
typical DAW, you can enable and disable the effects on an
Effectable without having to remove them from the object.
| Method Summary | |
void |
addEffect(AudioEffect effect)
Adds an effect to the effects chain. |
void |
clearEffects()
Removes all effects from the effect chain. |
void |
disableEffect(AudioEffect effect)
Disables effect if it is in the chain. |
void |
disableEffect(int i)
disables the ith effect in the effect chain. |
int |
effectCount()
Returns the number of effects in the chain. |
void |
effects()
Enables all effects currently attached to this. |
void |
enableEffect(AudioEffect effect)
Enables effect if it is in the chain. |
void |
enableEffect(int i)
Enables the ith effect in the effect chain. |
AudioEffect |
getEffect(int i)
Returns the ith effect in the effect chain. |
boolean |
hasEffect(AudioEffect effect)
Returns true if effect is in the chain. |
boolean |
isEffected()
Returns true if at least one effect in the chain is enabled. |
boolean |
isEnabled(AudioEffect effect)
Returns true if effect is in the chain and is also enabled. |
void |
noEffects()
Disables all effects currently attached to this. |
void |
removeEffect(AudioEffect effect)
Removes effect from the effects chain. |
AudioEffect |
removeEffect(int i)
Removes and returns the ith effect in the
effect chain. |
| Method Detail |
public void effects()
enableEffect(int).
public void noEffects()
disableEffect(int).
public boolean isEffected()
public boolean isEnabled(AudioEffect effect)
effect is in the chain and is also enabled.
effect - the AudioEffect to check the status of
effect is in the chain and is enabledpublic void addEffect(AudioEffect effect)
effect - the AudioEffect to addpublic AudioEffect getEffect(int i)
ith effect in the effect chain.
This method is not required to do bounds checking and may throw an
ArrayOutOfBoundsException if i is larger than
effectCount().
i - which effect to return
public int effectCount()
public boolean hasEffect(AudioEffect effect)
effect is in the chain.
effect - the effec to check for
effect is attached to thispublic void enableEffect(int i)
ith effect in the effect chain.
i - the index of the effect to enablepublic void enableEffect(AudioEffect effect)
effect if it is in the chain.
effect - the AudioEffect to enablepublic void disableEffect(int i)
ith effect in the effect chain.
i - the index of the effect to disablepublic void disableEffect(AudioEffect effect)
effect if it is in the chain.
effect - the AudioEffect to disablepublic void removeEffect(AudioEffect effect)
effect from the effects chain.
effect - the AudioEffect to removepublic AudioEffect removeEffect(int i)
ith effect in the
effect chain.
i - which effect to remove
AudioEffectpublic void clearEffects()
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||