public class HnmTimelineReader extends TimelineReader
TimelineReader.IdxField, TimelineReader.Index, TimelineReader.ProcHeader
Modifier and Type | Field and Description |
---|---|
HntmAnalyzerParams |
analysisParams |
datagramsBytePos, idx, maryHdr, numDatagrams, procHdr, sampleRate, timeIdxBytePos, totalDuration
Constructor and Description |
---|
HnmTimelineReader(String fileName) |
Modifier and Type | Method and Description |
---|---|
protected Datagram |
getNextDatagram(ByteBuffer bb)
Read and return the upcoming datagram from the given byte buffer.
|
protected void |
load(String fileName)
Load a timeline from a file.
|
static void |
main(String[] args)
Dump audio from HNM timeline to a series big-endian raw audio files in chunks of Datagrams (clusterSize).
|
computeTotalDuration, getByteBufferAtTime, getDatagram, getDatagram, getDatagrams, getDatagrams, getDatagrams, getDatagrams, getDatagrams, getDatagrams, getDatagramsBytePos, getIndex, getMappedByteBufferAtTime, getNumDatagrams, getProcHeaderContents, getSampleRate, getTotalDuration, hopToTime, load, loadByteBufferAtTime, scaleTime, skipNextDatagram, unScaleTime
public HntmAnalyzerParams analysisParams
public HnmTimelineReader(String fileName) throws IOException, MaryConfigurationException
protected void load(String fileName) throws IOException, MaryConfigurationException
TimelineReader
load
in class TimelineReader
fileName
- The file to read the timeline from. Must be non-null and point to a valid timeline file.IOException
- if a problem occurs during readingMaryConfigurationException
- if fileName does not point to a valid timeline fileprotected Datagram getNextDatagram(ByteBuffer bb)
getNextDatagram
in class TimelineReader
bb
- bbpublic static void main(String[] args) throws UnsupportedAudioFileException, IOException, MaryConfigurationException
-ea - Xmx2gb
args
- UnsupportedAudioFileException
- UnsupportedAudioFileExceptionIOException
- IOExceptionMaryConfigurationException
- MaryConfigurationExceptionCopyright © 2000–2016 DFKI GmbH. All rights reserved.