|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.groovemanager.sampled.fx.AbstractEffect
com.groovemanager.sampled.fx.AbstractAnalyzeEffect
Abstract superclass to be used for implementations of Effects that need an analyzation of the audio data before they can process it.
| Field Summary | |
|---|---|
private boolean |
analyzing
Indicates whether this Effect is currently analyzing or not |
| Fields inherited from class com.groovemanager.sampled.fx.AbstractEffect |
|---|
sampleRate |
| Constructor Summary | |
|---|---|
AbstractAnalyzeEffect(java.lang.String name)
Construct a new Effect with the given name |
|
| Method Summary | |
|---|---|
abstract void |
analyze(java.nio.FloatBuffer[] in)
Analyze a buffer of audio data |
boolean |
isAnalyzing()
Indicates whether this Effect is currently expecting calls to analyze() or not. |
boolean |
needsAnalysis()
Ask this Effect, if it needs to analyze the whole audio data before being able to process it |
void |
startAnalysis(float sampleRate)
If this Effects needs to analyze the whole audio data before processing, an analyzation will be done before the processing. |
void |
stopAnalysis()
Indicate that the analyzation process has been finished and no more calls to analyze() are to be expected before the next call
to startAnalysis(). |
| Methods inherited from class com.groovemanager.sampled.fx.AbstractEffect |
|---|
close, getControl, getControls, getName, isControlSupported, isOpen, isUndoable, open, process, undoEffect |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
private boolean analyzing
| Constructor Detail |
|---|
public AbstractAnalyzeEffect(java.lang.String name)
name - The effect name| Method Detail |
|---|
public abstract void analyze(java.nio.FloatBuffer[] in)
Effect
analyze in interface Effectanalyze in class AbstractEffectin - Array of two FloatBuffers containing the audio data to be
analyzed for the left (index [0]) and the right (index [1]) channel.AbstractEffect.analyze(java.nio.FloatBuffer[])public boolean isAnalyzing()
Effectanalyze() or not.
isAnalyzing in interface EffectisAnalyzing in class AbstractEffectAbstractEffect.isAnalyzing()public boolean needsAnalysis()
Effect
needsAnalysis in interface EffectneedsAnalysis in class AbstractEffectAbstractEffect.needsAnalysis()public void startAnalysis(float sampleRate)
Effectanalyze() and an optional final
call to stopAnalysis(). After finishing analyzation
open() to start processing. so an analyzing Effect is not
necessarily open.
startAnalysis in interface EffectstartAnalysis in class AbstractEffectsampleRate - The sample rate of the audio data to be analyzedEffect.startAnalysis(float)public void stopAnalysis()
Effectanalyze() are to be expected before the next call
to startAnalysis(). This method is optional.
stopAnalysis in interface EffectstopAnalysis in class AbstractEffectAbstractEffect.stopAnalysis()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||