public class FrequencyAudioSource extends AudioProcessor implements Runnable
AudioProcessor that provides frequency information.| Modifier and Type | Class and Description | 
|---|---|
static interface  | 
FrequencyAudioSource.Listener
Interface for classes that listen to the frequency information
 extracted by the  
FrequencyAudioSource. | 
| Constructor and Description | 
|---|
FrequencyAudioSource(AudioStream stream)
Construct on top of given stream 
 | 
| Modifier and Type | Method and Description | 
|---|---|
void | 
addFrequencyListener(FrequencyAudioSource.Listener l)
Add a listener 
 | 
void | 
addFrequencyListener(FrequencyAudioSource.Listener l,
                    Pair<Integer> requestFrequencyRange)
Add a listener 
 | 
SampleChunk | 
process(SampleChunk sample)
Function that takes a sample chunk and processes the chunk. 
 | 
void | 
run()  | 
getLength, getUnderlyingStream, nextSampleChunk, process, processingComplete, reset, setUnderlyingStreamiterator, seekclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitforEach, spliteratorpublic FrequencyAudioSource(AudioStream stream)
stream - the streampublic SampleChunk process(SampleChunk sample) throws Exception
AudioProcessorprocess in class AudioProcessorsample - The sample chunk to process.Exception - If the processing could not take placepublic void addFrequencyListener(FrequencyAudioSource.Listener l)
l - the listenerpublic void addFrequencyListener(FrequencyAudioSource.Listener l, Pair<Integer> requestFrequencyRange)
l - the listenerrequestFrequencyRange - the range