Class RawOutgoingAudioStream


  • public final class RawOutgoingAudioStream
    extends OutgoingAudioStream
    An audio stream that utilizes a virtual device for sending audio
    • Method Detail

      • getExpectedBufferSizeInBytes

        public long getExpectedBufferSizeInBytes()
        Expected buffer size of Audio Buffer
      • addOnStateChangedListener

        public void addOnStateChangedListener​(AudioStreamStateChangedListener listener)
        Adds the specified listener to receive OnStateChanged events. An event that occurs when a given audio stream state changes.
      • removeOnStateChangedListener

        public void removeOnStateChangedListener​(AudioStreamStateChangedListener listener)
        Removes the specified listener to receive OnStateChanged events. An event that occurs when a given audio stream state changes.
      • sendRawAudioBuffer

        public CompletableFuture<Void> sendRawAudioBuffer​(RawAudioBuffer rawAudioBuffer)
        Method for sending audio buffer. The buffer should match the format, sample rate and channel mode specified in the stream properties. For data per block property, we recommend sending data in the specified size, but additionally, we support sending larger buffers limited to 100ms as long as it can be evenly divided by the specified data per block.