|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectsampled.AudioFileListReader
public class AudioFileListReader
Constructor Summary | |
---|---|
AudioFileListReader(java.lang.String fileList,
RawAudioFormat format,
boolean cache)
Generate a new AudioFileListReader using given file list, RawAudioFormat and cache indicator. |
Method Summary | |
---|---|
boolean |
getPreEmphasis()
Does the AudioSource perform pre-emphasis? |
int |
getSampleRate()
Get the frame rate |
int |
read(double[] buf)
Read buf.length samples from the AudioSource. |
void |
setPreEmphasis(boolean applyPreEmphasis,
double a)
Toggle the pre-emphasis of the audio signal |
void |
tearDown()
Tear down the AudioSource (i.e. |
java.lang.String |
toString()
Get a string representation of the source |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public AudioFileListReader(java.lang.String fileList, RawAudioFormat format, boolean cache) throws java.io.IOException
fileList
- format
- cache
-
java.io.IOException
RawAudioFormat.create
Method Detail |
---|
public boolean getPreEmphasis()
AudioSource
getPreEmphasis
in interface AudioSource
public int getSampleRate()
AudioSource
getSampleRate
in interface AudioSource
public int read(double[] buf) throws java.io.IOException
AudioSource
read
in interface AudioSource
buf
- Previously allocated buffer to store the read audio samples.
java.io.IOException
public void setPreEmphasis(boolean applyPreEmphasis, double a)
AudioSource
setPreEmphasis
in interface AudioSource
applyPreEmphasis
- apply pre-emphasis?a
- the pre-emphasis factor: x'(n) = x(n) - a*x(n-1)public void tearDown() throws java.io.IOException
AudioSource
tearDown
in interface AudioSource
java.io.IOException
public java.lang.String toString()
AudioSource
toString
in interface AudioSource
toString
in class java.lang.Object
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |