public class SoundReader
extends java.lang.Object
Constructor and Description |
---|
SoundReader(java.io.File audioFile)
Construct a sound reader attached to given sound file.
|
SoundReader(java.lang.String audioPathname)
Construct a sound reader attached to given sound file path.
|
Modifier and Type | Method and Description |
---|---|
void |
getSamples(double[] samples) |
void |
getStereoSamples(double[] leftSamples,
double[] rightSamples) |
long |
getTotalNbSamples()
Return the number of samples of all channels
|
public SoundReader(java.io.File audioFile)
public SoundReader(java.lang.String audioPathname)
public long getTotalNbSamples()
public void getSamples(double[] samples) throws java.io.IOException, java.lang.IllegalArgumentException
java.io.IOException
java.lang.IllegalArgumentException
public void getStereoSamples(double[] leftSamples, double[] rightSamples) throws java.io.IOException
java.io.IOException