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
TypePropertyDescriptionjavafx.beans.property.BooleanProperty
The property for using wav files. -
Field Summary
Fields inherited from class java.io.File
pathSeparator, pathSeparatorChar, separator, separatorChar
-
Constructor Summary
ConstructorDescriptionWavFileType
(File baseFile) Create a wave file type and automatically generate the audio format information.WavFileType
(File baseFile, AudioFormat audioInfo) -
Method Summary
Modifier and TypeMethodDescriptionfloat
Get the duration of the sound file in secondsvoid
setAudioInfo
(AudioFormat audioInfo) 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, compareTo, 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
-
useWavFile
public javafx.beans.property.BooleanProperty useWavFilePropertyThe property for using wav files.- See Also:
-
-
Constructor Details
-
WavFileType
-
WavFileType
Create a wave file type and automatically generate the audio format information.- Parameters:
baseFile
- - the sound file.
-
-
Method Details
-
getAudioInfo
- Returns:
- the audioInfo
-
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.
-