marytts.signalproc.filter
Class FIRFilter.FIROutput

java.lang.Object
  extended by marytts.util.data.BaseDoubleDataSource
      extended by marytts.util.data.BufferedDoubleDataSource
          extended by marytts.util.data.BlockwiseDoubleDataSource
              extended by marytts.signalproc.filter.FIRFilter.FIROutput
All Implemented Interfaces:
DoubleDataSource
Enclosing class:
FIRFilter

public class FIRFilter.FIROutput
extends BlockwiseDoubleDataSource


Field Summary
protected  FrameProvider frameProvider
           
 
Fields inherited from class marytts.util.data.BlockwiseDoubleDataSource
blockSize
 
Fields inherited from class marytts.util.data.BufferedDoubleDataSource
buf, dataProcessor, DEFAULT_BUFFERSIZE, readPos, writePos
 
Fields inherited from class marytts.util.data.BaseDoubleDataSource
dataLength, inputSource
 
Fields inherited from interface marytts.util.data.DoubleDataSource
NOT_SPECIFIED
 
Constructor Summary
FIRFilter.FIROutput(DoubleDataSource inputSource)
           
 
Method Summary
 boolean hasMoreData()
          Whether or not any more data can be read from this data source.
protected  int readBlock(double[] target, int targetPos)
          Try to get a block of getBlockSize() doubles from this DoubleDataSource, and copy them into target, starting from targetPos.
 
Methods inherited from class marytts.util.data.BlockwiseDoubleDataSource
getBlockSize, prepareBlock, readIntoBuffer
 
Methods inherited from class marytts.util.data.BufferedDoubleDataSource
available, bufferSpaceLeft, compact, currentlyInBuffer, getData, increaseBufferSize
 
Methods inherited from class marytts.util.data.BaseDoubleDataSource
getAllData, getData, getData, getDataLength
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

frameProvider

protected FrameProvider frameProvider
Constructor Detail

FIRFilter.FIROutput

public FIRFilter.FIROutput(DoubleDataSource inputSource)
Method Detail

hasMoreData

public boolean hasMoreData()
Description copied from class: BufferedDoubleDataSource
Whether or not any more data can be read from this data source.

Specified by:
hasMoreData in interface DoubleDataSource
Overrides:
hasMoreData in class BufferedDoubleDataSource
Returns:
true if another call to getData() will return data, false otherwise.

readBlock

protected int readBlock(double[] target,
                        int targetPos)
Try to get a block of getBlockSize() doubles from this DoubleDataSource, and copy them into target, starting from targetPos.

Overrides:
readBlock in class BlockwiseDoubleDataSource
Parameters:
target - the double array to write into
targetPos - position in target where to start writing
Returns:
the amount of data actually delivered, which will be either length or 0. If 0 is returned, all further calls will also return 0 and not copy anything.
Throws:
java.lang.IllegalArgumentException - if length!=getBlockSize();