Package export.wavExport
Class WavDataUnitExport<T extends PamDataUnit<?,?>>
java.lang.Object
export.wavExport.WavDataUnitExport<T>
- Direct Known Subclasses:
RawHolderWavExport
Handles writing of .wav files. Generally wav files from overlay marks will just be the raw data. But there may be cases were an artifical .wav files
needs to be created. e.g. concatenated clicks if there is no raw data available.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionabstract Class<?>
Get the data unit class whihc uses this .wav export function.abstract double[][]
getWavClip
(T dataUnit) Get a wav file clip from a data unitvoid
writeWavFile
(WavFileWriter wavWriter, T dataUnit, OverlayMark mark) Write the .wav file.
-
Constructor Details
-
WavDataUnitExport
public WavDataUnitExport()
-
-
Method Details
-
writeWavFile
Write the .wav file.- Parameters:
mark
- - the overlay mark. Can be null.dataUnits
- - list of selected data units.
-
getWavClip
Get a wav file clip from a data unit- Parameters:
dataUnit
- - the data unit.- Returns:
- the wav file clip.
-
getUnitClass
Get the data unit class whihc uses this .wav export function.- Returns:
- the class of the type of the data unit which uses this class.
-