|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object ch.aplu.util.SoundReader
public class SoundReader
Class for reading sound files and extract sound data. Sound format supported: WAV, ALAW, ULAW
Constructor Summary | |
---|---|
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. |
Method Summary | |
---|---|
void |
getSamples(double[] samples)
|
void |
getStereoSamples(double[] leftSamples,
double[] rightSamples)
|
long |
getTotalNbSamples()
Return the number of samples of all channels |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public SoundReader(java.io.File audioFile)
public SoundReader(java.lang.String audioPathname)
Method Detail |
---|
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
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |