| Constructor and Description |
|---|
FloatData(float[] values,
int sampleRate,
long firstSampleNumber)
Constructs a Data object with the given values, sample rate, collect time, and first sample number.
|
FloatData(float[] values,
int sampleRate,
long collectTime,
long firstSampleNumber)
Constructs a Data object with the given values, sample rate, collect time, and first sample number.
|
| Modifier and Type | Method and Description |
|---|---|
FloatData |
clone() |
long |
getCollectTime()
Returns the time in milliseconds at which the audio data is collected.
|
long |
getFirstSampleNumber() |
int |
getSampleRate() |
float[] |
getValues() |
static FloatData |
toFloatData(Data data)
Converts a given Data-object into a
FloatData if possible. |
public FloatData(float[] values,
int sampleRate,
long firstSampleNumber)
values - the data valuessampleRate - the sample rate of the datafirstSampleNumber - the position of the first sample in the original datapublic FloatData(float[] values,
int sampleRate,
long collectTime,
long firstSampleNumber)
values - the data valuessampleRate - the sample rate of the datacollectTime - the time at which this data is collectedfirstSampleNumber - the position of the first sample in the original datapublic float[] getValues()
public int getSampleRate()
public long getFirstSampleNumber()
public long getCollectTime()
public FloatData clone() throws java.lang.CloneNotSupportedException
clone in class java.lang.Objectjava.lang.CloneNotSupportedException