public class WavReader extends Object
Constructor and Description |
---|
WavReader(DataInputStream dis)
Constructor from an already open DataInputStream
|
WavReader(String fileName)
Constructor from a file name
|
Modifier and Type | Method and Description |
---|---|
int |
getNumSamples()
Get the number of samples for this wave
|
int |
getSampleRate()
Get the sample rate for this wave
|
short[] |
getSamples()
Get the sample data of this wave
|
public WavReader(DataInputStream dis)
dis
- DataInputStream to read the wav data frompublic WavReader(String fileName)
fileName
- the name of the file to read the wav data frompublic int getSampleRate()
public int getNumSamples()
public short[] getSamples()
Copyright © 2000–2016 DFKI GmbH. All rights reserved.