Package wavFiles

Class WavFileReader

java.lang.Object
wavFiles.WavFile
wavFiles.WavFileReader

public class WavFileReader extends WavFile
  • Constructor Details

    • WavFileReader

      public WavFileReader(String fileName)
  • Method Details

    • readData

      public int readData(double[][] doubleData)
      Read data into a preallocated double array. The array should be 2 D, with the first dim being the number of channels, the second the number of samples to read.
      Parameters:
      doubleArray - double array to receive data
      Returns:
      number of samples read (should be doubleArray[0].length if no EOF)
    • readData

      public int readData(short[][] shortArray)
      Read data into a preallocated double array. The array should be 2 D, with the first dim being the number of channels, the second the number of samples to read.
      Parameters:
      doubleArray - double array to receive data
      Returns:
      number of samples read (should be doubleArray[0].length if no EOF)