|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.icdif.audio.io.MP3Decoder
public class MP3Decoder
An mp3 decoder that uses the tritonus library
Constructor Summary | |
---|---|
MP3Decoder(java.io.InputStream stream)
|
Method Summary | |
---|---|
float |
getSampleRate()
Gets the sample rate of the audio to be decoded |
int |
readSamples(float[] samples)
Reads in samples from the decoder and fills the array passed as parameter with the values read (It tries to read as many samples from the stream as there are elements in the array passed in). |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public MP3Decoder(java.io.InputStream stream) throws java.lang.Exception
java.lang.Exception
Method Detail |
---|
public int readSamples(float[] samples)
AudioDecoder
readSamples
in interface AudioDecoder
samples
- The array to which it will write the samples read.
public float getSampleRate()
AudioDecoder
getSampleRate
in interface AudioDecoder
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |