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.BooleanPropertyThe 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 TypeMethodDescriptionintgetAudioFormat(File file) Get the audio format.floatGet the duration of the sound file in secondslongHARP data maximum samples in this chunk.longHARP data, samples to skip before this chunk.longChunk start in milliseconds.voidsetAudioInfo(AudioFormat audioInfo) voidsetMaxSamples(long maxSamples) HARP data maximum samples in this chunk.voidsetSamplesOffset(long samplesOffset) HARP data, samples to skip before this chunk.voidsetStartMilliseconds(long startMilliseconds) Chunk start in milliseconds.True to use the file in analysisjavafx.beans.property.BooleanPropertyThe 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
- 
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.
 - 
WavFileType
Simple constructor to use with a single string file name- Parameters:
 newFile-
 
 - 
 - 
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:
 compareToin interfaceComparable<File>- Overrides:
 compareToin classFile
 
 -