|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectsound.echo.EchoFilter
public class EchoFilter
Constructor Summary | |
---|---|
EchoFilter(int numDelaySamples,
float decay)
Creates an EchoFilter with the specified number of delay samples and the specified decay rate. |
Method Summary | |
---|---|
void |
filter(byte[] samples)
Filters an array of samples. |
void |
filter(byte[] samples,
int offset,
int length)
Filters the sound samples to add an echo. |
int |
getRemainingSize()
Gets the remaining size, in bytes, of samples that this filter can echo after the sound is done playing. |
static short |
getSample(byte[] buffer,
int position)
Convenience method for getting a 16-bit sample from a byte array. |
void |
reset()
Clears this EchoFilter's internal delay buffer. |
static void |
setSample(byte[] buffer,
int position,
short sample)
Convenience method for setting a 16-bit sample in a byte array. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public EchoFilter(int numDelaySamples, float decay)
Method Detail |
---|
public int getRemainingSize()
public void reset()
public void filter(byte[] samples, int offset, int length)
public void filter(byte[] samples)
public static short getSample(byte[] buffer, int position)
public static void setSample(byte[] buffer, int position, short sample)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |