Package wavFiles
Class WavFileReader
java.lang.Object
wavFiles.WavFile
wavFiles.WavFileReader
-
Constructor Summary
-
Method Summary
Methods inherited from class wavFiles.WavFile
close, getCurrentFormat, getFileName, getWavHeader, positionAtData, readWavHeader, setPosition
-
Constructor Details
-
WavFileReader
-
-
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)
-