|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object be.hogent.tarsos.dsp.DelayEffect
public class DelayEffect
Adds an echo effect to the signal.
Constructor Summary | |
---|---|
DelayEffect(double echoLength,
double decay,
double sampleRate)
|
Method Summary | |
---|---|
boolean |
process(AudioEvent audioEvent)
Process the audio event. |
void |
processingFinished()
Notify the AudioProcessor that no more data is available and processing has finished. |
void |
setDecay(double newDecay)
A decay, should be a value between zero and one. |
void |
setEchoLength(double newEchoLength)
|
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public DelayEffect(double echoLength, double decay, double sampleRate)
echoLength
- in secondssampleRate
- the sample rate in Hz.decay
- The decay of the echo, a value between 0 and 1.Method Detail |
---|
public void setEchoLength(double newEchoLength)
newEchoLength
- A new echo buffer length in seconds.public void setDecay(double newDecay)
newDecay
- the new decay (preferably between zero and one).public boolean process(AudioEvent audioEvent)
AudioProcessor
process
in interface AudioProcessor
audioEvent
- The audio event that contains audio data.
public void processingFinished()
AudioProcessor
processingFinished
in interface AudioProcessor
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |