Package Acquisition
Class WavHeader
java.lang.Object
Acquisition.WavHeader
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
addChunkData
(WavChunkData chunkData) boolean
checkSizes
(long length) Check the two size informations in the wav file.void
repairSizes
(long length) Write the correct sizes into the file data.
-
Constructor Details
-
WavHeader
public WavHeader()
-
-
Method Details
-
addChunkData
-
checkSizes
public boolean checkSizes(long length) Check the two size informations in the wav file. The first in the second 4 bytes in the RIFF chunk which should be equal to the number of bytes in the file - 4 The second is the data length, which should be equal to the length of the file - the data start point.- Parameters:
length
-
-
repairSizes
public void repairSizes(long length) Write the correct sizes into the file data.- Parameters:
length
- total length of file in bytes.
-