Package wavFiles

Class WavFile

java.lang.Object
wavFiles.WavFile
Direct Known Subclasses:
WavFileReader, WavFileWriter

public class WavFile extends Object
  • Method Details

    • readWavHeader

      public WavHeader readWavHeader()
      Read the wav header - assumes that file ref is already at the start of the file.
      Returns:
      the Wav header.
    • getWavHeader

      public WavHeader 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

      public String getFileName()
      Returns:
      the fileName
    • getCurrentFormat

      public AudioFormat getCurrentFormat()
      Returns:
      the currentFormat