Class RawOutgoingAudioStream
- Object
-
- CallAudioStream
-
- OutgoingAudioStream
-
- RawOutgoingAudioStream
-
public final class RawOutgoingAudioStream extends OutgoingAudioStream
An audio stream that utilizes a virtual device for sending audio
-
-
Constructor Summary
Constructors Constructor Description RawOutgoingAudioStream(RawOutgoingAudioStreamOptions options)
Default constructor
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
addOnStateChangedListener(AudioStreamStateChangedListener listener)
Adds the specified listener to receive OnStateChanged events.long
getExpectedBufferSizeInBytes()
Expected buffer size of Audio BufferRawOutgoingAudioStreamProperties
getProperties()
RawOutgoingAudioStreamProperties that this CallAudioStream is set tovoid
removeOnStateChangedListener(AudioStreamStateChangedListener listener)
Removes the specified listener to receive OnStateChanged events.CompletableFuture<Void>
sendRawAudioBuffer(RawAudioBuffer rawAudioBuffer)
Method for sending audio buffer.-
Methods inherited from class CallAudioStream
finalize, getDirection, getState, getType
-
-
-
-
Constructor Detail
-
RawOutgoingAudioStream
public RawOutgoingAudioStream(RawOutgoingAudioStreamOptions options)
Default constructor
-
-
Method Detail
-
getExpectedBufferSizeInBytes
public long getExpectedBufferSizeInBytes()
Expected buffer size of Audio Buffer
-
getProperties
public RawOutgoingAudioStreamProperties getProperties()
RawOutgoingAudioStreamProperties that this CallAudioStream is set to
-
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.
-
-