Interface AudioFrameBufferFactory


  • public interface AudioFrameBufferFactory
    Factory for audio frame buffers.
    • Method Detail

      • create

        AudioFrameBuffer create​(int bufferDuration,
                                AudioDataFormat format,
                                java.util.concurrent.atomic.AtomicBoolean stopping)
        Parameters:
        bufferDuration - Maximum duration of the buffer. The buffer may actually hold less in case the average size of frames exceeds AudioDataFormat.expectedChunkSize().
        format - The format of the frames held in this buffer.
        stopping - Atomic boolean which has true value when the track is in a state of pending stop.
        Returns:
        A new frame buffer instance.