com.icdif.audio.analysis
Class SamplesReader
java.lang.Object
com.icdif.audio.analysis.SamplesReader
public class SamplesReader
- extends java.lang.Object
This class reads samples, a window at a time, from the Decoder and saves
them in an ArrayList
- Author:
- wanderer
Constructor Summary |
SamplesReader(AudioDecoder decoder,
int windowSize)
Instantiates this class, by receiving the audio decoder and the window
size (i.e. the size of the successive steps of retrieval of the data) and
retrieves the data to a attribute of this class |
Method Summary |
java.util.ArrayList<java.lang.Float> |
getAllSamples()
Gets all the samples retrieved from the decoder |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
SamplesReader
public SamplesReader(AudioDecoder decoder,
int windowSize)
- Instantiates this class, by receiving the audio decoder and the window
size (i.e. the size of the successive steps of retrieval of the data) and
retrieves the data to a attribute of this class
- Parameters:
decoder
- The Decoder that "contains" the stream to be readwindowSize
- the size of the successive steps of retrieval of the data
getAllSamples
public java.util.ArrayList<java.lang.Float> getAllSamples()
- Gets all the samples retrieved from the decoder
- Returns:
- all the samples