edu.cmu.sphinx.frontend
Class DataStartSignal
java.lang.Object
edu.cmu.sphinx.frontend.Signal
edu.cmu.sphinx.frontend.DataStartSignal
- All Implemented Interfaces:
- Data, java.io.Serializable
public class DataStartSignal
- extends Signal
A signal that indicates the start of data.
- See Also:
Data,
DataProcessor,
Signal,
Serialized Form
|
Constructor Summary |
DataStartSignal(int sampleRate)
Constructs a DataStartSignal. |
DataStartSignal(int sampleRate,
long time)
Constructs a DataStartSignal at the given time. |
| Methods inherited from class edu.cmu.sphinx.frontend.Signal |
getTime |
| Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
DataStartSignal
public DataStartSignal(int sampleRate)
- Constructs a DataStartSignal.
- Parameters:
sampleRate - The sampling rate of the started data stream.
DataStartSignal
public DataStartSignal(int sampleRate,
long time)
- Constructs a DataStartSignal at the given time.
- Parameters:
sampleRate - the sampling rate of the started data stream.time - the time this DataStartSignal is created
toString
public java.lang.String toString()
- Returns the string "DataStartSignal".
- Overrides:
toString in class java.lang.Object
- Returns:
- the string "DataStartSignal"
getSampleRate
public int getSampleRate()
- Returns:
- the sampling rate of the started data stream.