Package wavFiles
Class WavFile
java.lang.Object
wavFiles.WavFile
- Direct Known Subclasses:
WavFileReader
,WavFileWriter
-
Method Summary
Modifier and TypeMethodDescriptionvoid
close()
boolean
Read the wav header - assumes that file ref is already at the start of the file.boolean
setPosition
(long sampleNumber) Set the file pointer at a specific sample.
-
Method Details
-
readWavHeader
Read the wav header - assumes that file ref is already at the start of the file.- Returns:
- the Wav header.
-
getWavHeader
- Returns:
- the wavHeader
-
positionAtData
public boolean positionAtData() -
setPosition
public boolean setPosition(long sampleNumber) Set the file pointer at a specific sample. Only for files open in read mode !- Parameters:
sampleNumber
- sample number- Returns:
- true if OK, false if it failed.
-
close
public void close() -
getFileName
- Returns:
- the fileName
-
getCurrentFormat
- Returns:
- the currentFormat
-