Package Acquisition

Class WavHeader

java.lang.Object
Acquisition.WavHeader

public class WavHeader extends Object
  • Constructor Details Link icon

    • WavHeader Link icon

      public WavHeader()
  • Method Details Link icon

    • addChunkData Link icon

      public void addChunkData(WavChunkData chunkData)
    • checkSizes Link icon

      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 Link icon

      public void repairSizes(long length)
      Write the correct sizes into the file data.
      Parameters:
      length - total length of file in bytes.