public interface AudioListener
AudioListenercan be used to monitor
Recordableobjects such as
AudioInput. Each time a
Recordableobject receives a new sample buffer from the audio system, or generates a new sample buffer at the request of the audio system, it passes a copy of this buffer to its listeners. You can implement this interface if you want to receive samples in a callback fashion, rather than using an object's
AudioBuffers to access them. You add an
Recordableby calling the addListener method. When you want to stop receiving samples you call the removeListener method.
|Modifier and Type||Method and Description|
Called by the audio object this AudioListener is attached to when that object has new samples.
Called by the
void samples(float samp)
samp- a float buffer of samples from a MONO sound stream
void samples(float sampL, float sampR)
Recordableobject this is attached to when that object has new samples.
sampL- a float buffer containing the left channel of a STEREO sound stream
sampR- a float buffer containing the right channel of a STEREO sound stream