Overview | Package | Class | Use | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

## ddf.minim
Interface AudioListener

All Known Subinterfaces:
  SampleRecorder

All Known Implementing Classes:
  SignalSplitter

    public interface AudioListener

An `AudioListener` can be used to monitor `Recordable` objects. Each time a `Recordable` object 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 `AudioBuffer`s to access them. You add an `AudioListener` to a `Recordable` by calling `Recordable.addListener(AudioListener)`. When you want to stop receiving samples you call `Recordable.removeListener(AudioListener)`.

Author:
  Damien Di Fede

Method Summary
`void` | `samples(float[] samp)` Called by the `Recordable` object this is attached to when that object has new samples.
`void` | `samples(float[] sampL, float[] sampR)` Called by the `Recordable` object this is attached to when that object has new samples.

Method Detail

### samples

    void samples(float[] samp)

  Called by the `Recordable` object this is attached to when that object has new samples.

  Parameters:
    `samp` - a buffer of samples from a MONO sound stream

### samples

    void samples(float[] sampL,
                 float[] sampR)

  Called by the `Recordable` object this is attached to when that object has new samples.

  Parameters:
    `sampL` - the left channel of a STEREO sound stream
    `sampR` - the right channel of a STEREO sound stream

Overview | Package | Class | Use | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD