Class SampledExportSegment
java.lang.Object
ca.phon.media.ExportSegment
ca.phon.media.SampledExportSegment
Save a segment of sampled audio to given file using fileType and encoding
provided during construction. If an encoding which is not supported
is selected for the given fileType it is adjusted to default 16bit
encodings for the given fileType.
-
Constructor Summary
ConstructorsConstructorDescriptionSampledExportSegment(Sampled samples, AudioFileType type, AudioFileEncoding encoding) -
Method Summary
Modifier and TypeMethodDescriptionvoidexportSegment(File file, float startTime, float endTime) Export segment to given file.Methods inherited from class ca.phon.media.ExportSegment
getFile, getPosition, isExporting, setExporting, setFile, setPosition
-
Constructor Details
-
SampledExportSegment
-
-
Method Details
-
exportSegment
Description copied from class:ExportSegmentExport segment to given file.- Specified by:
exportSegmentin classExportSegment- Parameters:
file-startTime-endTime-- Throws:
IOException
-
getFileType
- Specified by:
getFileTypein classExportSegment
-
getEncoding
- Specified by:
getEncodingin classExportSegment
-