Package ca.phon.media
Class ExportSegment
java.lang.Object
ca.phon.media.ExportSegment
- Direct Known Subclasses:
SampledExportSegment
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 Summary
-
Method Summary
Modifier and TypeMethodDescriptionabstract void
exportSegment
(File file, float startTime, float endTime) Export segment to given file.abstract AudioFileEncoding
getFile()
abstract AudioFileType
float
boolean
void
setExporting
(boolean exporting) void
void
setPosition
(float position)
-
Constructor Details
-
ExportSegment
public ExportSegment()
-
-
Method Details
-
getFile
-
setFile
-
isExporting
public boolean isExporting() -
setExporting
public void setExporting(boolean exporting) -
getPosition
public float getPosition() -
setPosition
public void setPosition(float position) -
exportSegment
Export segment to given file.- Parameters:
file
-startTime
-endTime
-- Throws:
IOException
-
getFileType
-
getEncoding
-