Package com.avaya.clientservices.media.audio

## Interface AudioMixer

- All Superinterfaces:
    `Destroyable`

      public interface AudioMixer
      extends Destroyable

  Describes interface for object, which can be used for audio mixing

- - ### Method Summary

    All Methods Instance Methods Abstract Methods
    Modifier and Type | Method | Description
    --- | --- | ---
    `int` | `mix​(java.nio.ByteBuffer buffer, long offset, long len)` | Provides data for mixing (2 bytes per sample, mono, 48 kHz)

    - ### Methods inherited from interface com.avaya.clientservices.media.gui.Destroyable

      `destroy`

- - ### Method Detail

    - #### mix

          int mix​(java.nio.ByteBuffer buffer,
                  long offset,
                  long len)

      Provides data for mixing (2 bytes per sample, mono, 48 kHz)
      Parameters:
        `buffer` - directly allocated ByteBuffer with data
        `offset` - offset where to start to read data
        `len` - amount of data to read
      Returns:
        returns amount of consumed data. If not the whole buffer was consumed than application should provide the rest of data in a next call