public class ConcatAudioFileDataSource extends AudioFileDataSource implements ReferenceSource
A DataStartSignal
will be
placed before the start of the first file, and a
DataEndSignal
after the last
file. No DataStartSignal or DataEndSignal will be placed between them.
AUDIO_FILE_LISTENERS, bigEndian, bytesPerRead, bytesPerValue, dataStream, fileListeners, PROP_BYTES_PER_READ, sampleRate, signedData
logger
Constructor and Description |
---|
ConcatAudioFileDataSource() |
ConcatAudioFileDataSource(int bytesPerRead,
java.util.List<AudioFileProcessListener> listeners) |
Modifier and Type | Method and Description |
---|---|
java.util.List<java.lang.String> |
getReferences()
Returns a list of all reference text.
|
void |
initialize()
Initializes a ConcatFileDataSource.
|
void |
setAudioFile(java.net.URL audioFileURL,
java.lang.String streamName)
Sets the audio file from which the data-stream will be generated of.
|
void |
setBatchFile(java.io.File file) |
void |
setBatchFiles(java.util.List<java.io.File> files) |
void |
setBatchUrls(java.util.List<java.net.URL> urls) |
addNewFileListener, getData, getSampleRate, isBigEndian, newProperties, removeNewFileListener, setAudioFile, setInputStream
getPredecessor, setPredecessor
getName, initLogger, toString
public ConcatAudioFileDataSource(int bytesPerRead, java.util.List<AudioFileProcessListener> listeners)
public ConcatAudioFileDataSource()
public void initialize()
initialize
in interface DataProcessor
initialize
in class AudioFileDataSource
public void setBatchFile(java.io.File file)
public void setBatchFiles(java.util.List<java.io.File> files)
public void setBatchUrls(java.util.List<java.net.URL> urls)
public void setAudioFile(java.net.URL audioFileURL, java.lang.String streamName)
AudioFileDataSource
setAudioFile
in class AudioFileDataSource
audioFileURL
- The location of the audio file to usestreamName
- The name of the InputStream. if null
the complete path of the audio file will be
uses as stream name.public java.util.List<java.lang.String> getReferences()
getReferences
in interface ReferenceSource