Package ca.phon.media
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
ConstructorDescriptionSampledExportSegment
(Sampled samples, AudioFileType type, AudioFileEncoding encoding) -
Method Summary
Modifier and TypeMethodDescriptionvoid
exportSegment
(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:ExportSegment
Export segment to given file.- Specified by:
exportSegment
in classExportSegment
- Throws:
IOException
-
getFileType
- Specified by:
getFileType
in classExportSegment
-
getEncoding
- Specified by:
getEncoding
in classExportSegment
-