|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface Filter1D
Serial 1D data filter. Used mostly in filtering of audio data (low-pass, high-pass, band, notch filters).
Field Summary | |
---|---|
static int |
IND_BYTES_PER_SAMPLE
Format-array index: sample size in bytes. |
static int |
IND_FREQUENCY
Format-array index: sampling frequency in Hz. |
static int |
IND_CHANNELS
Format-array index: number of audio channels. |
static int |
IND_SAMPLES
Format-array index: number of samples (time-slots). |
Fields inherited from interface cz.cuni.jagrlib.iface.Property |
---|
LOGGING, STATISTICS, TEXT_DESCRIPTION |
Method Summary | |
---|---|
int |
batch(double[] source,
int sourceSamples,
double[] target)
Processes one sample batch in double format. |
int |
batch(int[] source,
int sourceSamples,
int[] target)
Processes one sample batch in integer format. |
boolean |
format(int[] source,
int[] target)
Defines format modifications. |
void |
reset()
Starts a new data pass. |
Methods inherited from interface cz.cuni.jagrlib.iface.Property |
---|
commit, get, set |
Field Detail |
---|
static final int IND_CHANNELS
static final int IND_BYTES_PER_SAMPLE
static final int IND_SAMPLES
static final int IND_FREQUENCY
Method Detail |
---|
boolean format(int[] source, int[] target)
batch(double[], int, double[])
calls.
source
- Source audio format (channels, bytes-per-sample, samples, frequency).target
- Target audio format (channels, bytes-per-sample, samples, frequency).
false => format identity
).batch(double[],int,double[])
,
batch(int[],int,int[])
void reset()
batch(double[],int,double[])
,
batch(int[],int,int[])
int batch(double[] source, int sourceSamples, double[] target)
channel0[0], channel1[0], ..
channelN[0], channel0[1], ..
.
source
- Source data array.sourceSamples
- Number of source time-slots.target
- Target data array.
format(int[], int[])
,
batch(int[],int,int[])
int batch(int[] source, int sourceSamples, int[] target)
channel0[0], channel1[0], ..
channelN[0], channel0[1], ..
.
source
- Source data array.sourceSamples
- Number of source time-slots.target
- Target data array.
format(int[], int[])
,
batch(double[],int,double[])
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |