Class PushAudioOutputStreamCallback


  • public abstract class PushAudioOutputStreamCallback
    extends Object
    An abstract base class that defines callback methods (write() and close()) for custom audio output streams). Added in version 1.7.0
    • Constructor Detail

      • PushAudioOutputStreamCallback

        public PushAudioOutputStreamCallback()
    • Method Detail

      • write

        public abstract int write​(byte[] dataBuffer)
        Writes data to audio output stream from the data buffer.
        Parameters:
        dataBuffer - The byte array to store the data to be written.
        Returns:
        The number of written bytes.
      • close

        public abstract void close()
        Closes the audio output stream.