Package ca.phon.media

Class ExportSegment

java.lang.Object
ca.phon.media.ExportSegment
Direct Known Subclasses:
SampledExportSegment

@Extension(LongSound.class) public abstract class ExportSegment extends Object
Extension interface for LongSound objects.

E.g.,

 float startTime, endTime = ... // setup segment times
 ExportSegment exportSeg = longSound.getExtension(ExportSegment.class);
 if(exportSeg != null) {
     exportSeg.exportSegment(file, startTime, endTime);
 }
 

  • Constructor Details

    • ExportSegment

      public ExportSegment()
  • Method Details

    • getFile

      public File getFile()
    • setFile

      public void setFile(File file)
    • isExporting

      public boolean isExporting()
    • setExporting

      public void setExporting(boolean exporting)
    • getPosition

      public float getPosition()
    • setPosition

      public void setPosition(float position)
    • exportSegment

      public abstract void exportSegment(File file, float startTime, float endTime) throws IOException
      Export segment to given file.
      Parameters:
      file -
      startTime -
      endTime -
      Throws:
      IOException
    • getFileType

      public abstract AudioFileType getFileType()
    • getEncoding

      public abstract AudioFileEncoding getEncoding()