Package wavFiles
Class WavFile
java.lang.Object
wavFiles.WavFile
- Direct Known Subclasses:
WavFileReader
,WavFileWriter
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected ByteConverter
protected AudioFormat
protected String
protected String
protected WavHeader
protected WindowsFile
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
close()
protected void
finalize()
boolean
Read the wav header - assumes that file ref is already at the start of the file.protected boolean
reportError
(String warningText) boolean
setPosition
(long sampleNumber) Set the file pointer at a specific sample.
-
Field Details
-
Constructor Details
-
Method Details
-
finalize
-
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.
-
reportError
-
close
public void close() -
getFileName
- Returns:
- the fileName
-
getCurrentFormat
- Returns:
- the currentFormat
-