Class WavDataUnitExport<T extends PamDataUnit<?,?>>

java.lang.Object
export.wavExport.WavDataUnitExport<T>
Direct Known Subclasses:
RawHolderWavExport

public abstract class WavDataUnitExport<T extends PamDataUnit<?,?>> extends Object
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 Details

    • WavDataUnitExport

      public WavDataUnitExport()
  • Method Details

    • writeWavFile

      public void writeWavFile(WavFileWriter wavWriter, T dataUnit, OverlayMark mark)
      Write the .wav file.
      Parameters:
      mark - - the overlay mark. Can be null.
      dataUnits - - list of selected data units.
    • getWavClip

      public abstract double[][] getWavClip(T dataUnit)
      Get a wav file clip from a data unit
      Parameters:
      dataUnit - - the data unit.
      Returns:
      the wav file clip.
    • getUnitClass

      public abstract Class<?> 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.