Package PamUtils.worker.filelist
Class WavFileType
java.lang.Object
java.io.File
PamUtils.worker.filelist.WavFileType
- All Implemented Interfaces:
Serializable
,Comparable<File>
- See Also:
-
Property Summary
PropertiesTypePropertyDescriptionjavafx.beans.property.BooleanProperty
The property for using wav files. -
Field Summary
Fields inherited from class java.io.File
pathSeparator, pathSeparatorChar, separator, separatorChar
-
Constructor Summary
ConstructorsConstructorDescriptionWavFileType
(File baseFile) Create a wave file type and automatically generate the audio format information.WavFileType
(File baseFile, AudioFormat audioInfo) WavFileType
(String newFile) Simple constructor to use with a single string file name -
Method Summary
Modifier and TypeMethodDescriptionint
getAudioFormat
(File file) Get the audio format.float
Get the duration of the sound file in secondslong
HARP data maximum samples in this chunk.long
HARP data, samples to skip before this chunk.long
Chunk start in milliseconds.void
setAudioInfo
(AudioFormat audioInfo) void
setMaxSamples
(long maxSamples) HARP data maximum samples in this chunk.void
setSamplesOffset
(long samplesOffset) HARP data, samples to skip before this chunk.void
setStartMilliseconds
(long startMilliseconds) Chunk start in milliseconds.True to use the file in analysisjavafx.beans.property.BooleanProperty
The property for using wav files.Methods inherited from class java.io.File
canExecute, canRead, canWrite, createNewFile, createTempFile, createTempFile, delete, deleteOnExit, equals, exists, getAbsoluteFile, getAbsolutePath, getCanonicalFile, getCanonicalPath, getFreeSpace, getName, getParent, getParentFile, getPath, getTotalSpace, getUsableSpace, hashCode, isAbsolute, isDirectory, isFile, isHidden, lastModified, length, list, list, listFiles, listFiles, listFiles, listRoots, mkdir, mkdirs, renameTo, setExecutable, setExecutable, setLastModified, setReadable, setReadable, setReadOnly, setWritable, setWritable, toPath, toString, toURI, toURL
-
Property Details
-
Constructor Details
-
Method Details
-
getAudioInfo
- Returns:
- the audioInfo
-
getAudioFormat
Get the audio format.- Returns:
- the audio format.
-
getDurationInSeconds
public float getDurationInSeconds()Get the duration of the sound file in seconds- Returns:
- the duration of the sound file in seconds.
-
setAudioInfo
- Parameters:
audioInfo
- the audioInfo to set
-
useWavFile
True to use the file in analysis- Returns:
- true to use the file in analysis
-
useWavFileProperty
public javafx.beans.property.BooleanProperty useWavFileProperty()The property for using wav files.- Returns:
- the boolean property for using the wav file.
-
getSamplesOffset
public long getSamplesOffset()HARP data, samples to skip before this chunk.- Returns:
- the samplesOffset
-
setSamplesOffset
public void setSamplesOffset(long samplesOffset) HARP data, samples to skip before this chunk.- Parameters:
samplesOffset
- the samplesOffset to set
-
getMaxSamples
public long getMaxSamples()HARP data maximum samples in this chunk.- Returns:
- the maxSamples
-
setMaxSamples
public void setMaxSamples(long maxSamples) HARP data maximum samples in this chunk.- Parameters:
maxSamples
- the maxSamples to set
-
getStartMilliseconds
public long getStartMilliseconds()Chunk start in milliseconds. If zero, will process file name for a time as usual.- Returns:
- the startMilliseconds
-
setStartMilliseconds
public void setStartMilliseconds(long startMilliseconds) Chunk start in milliseconds. If zero, will process file name for a time as usual.- Parameters:
startMilliseconds
- the startMilliseconds to set
-
compareTo
- Specified by:
compareTo
in interfaceComparable<File>
- Overrides:
compareTo
in classFile
-