Package Acquisition

Class WavHeader

java.lang.Object
Acquisition.WavHeader

public class WavHeader extends Object
  • Constructor Details

    • WavHeader

      public WavHeader()
  • Method Details

    • addChunkData

      public void addChunkData(WavChunkData chunkData)
    • 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.