public class SilenceDoubleDataSource extends BaseDoubleDataSource
Modifier and Type | Field and Description |
---|---|
protected long |
n |
dataLength, inputSource
NOT_SPECIFIED
Constructor and Description |
---|
SilenceDoubleDataSource(long n)
Construct an double data source from which a given amount of silence can be read.
|
Modifier and Type | Method and Description |
---|---|
int |
available()
The number of doubles that can currently be read from this double data source without blocking.
|
int |
getData(double[] target,
int targetPos,
int length)
Try to get length doubles from this DoubleDataSource, and copy them into target, starting from targetPos.
|
boolean |
hasMoreData()
Whether or not any more data can be read from this data source.
|
getAllData, getData, getData, getDataLength
public SilenceDoubleDataSource(long n)
n
- the number of silence samples to be readpublic boolean hasMoreData()
BaseDoubleDataSource
hasMoreData
in interface DoubleDataSource
hasMoreData
in class BaseDoubleDataSource
public int available()
available
in interface DoubleDataSource
available
in class BaseDoubleDataSource
public int getData(double[] target, int targetPos, int length)
BaseDoubleDataSource
getData
in interface DoubleDataSource
getData
in class BaseDoubleDataSource
target
- the double array to write intotargetPos
- position in target where to start writinglength
- the amount of data requestedCopyright © 2000–2016 DFKI GmbH. All rights reserved.