Package com.avaya.clientservices.media.audio

## Interface AudioStreamListener

-     public interface AudioStreamListener

  Audio stream notification interface

- - ### Method Summary

    All Methods Instance Methods Abstract Methods
    Modifier and Type | Method | Description
    --- | --- | ---
    `int` | `onData​(java.nio.ByteBuffer buffer, int lenBytes)` | Signals that new data were captured, and provide access to it

- - ### Method Detail

    - #### onData

          int onData​(java.nio.ByteBuffer buffer,
                     int lenBytes)

      Signals that new data were captured, and provide access to it
      Parameters:
        `buffer` - ByteBuffer which contains captured data (2 bytes per sample, mono, 48 kHz)
        `lenBytes` - length of captured data in bytes
      Returns:
        returns amount of consumed bytes, it is useful statistics