ACSRawOutgoingAudioStream Class

Declaration

@interface ACSRawOutgoingAudioStream : ACSOutgoingAudioStream;

Description

An audio stream that utilizes a virtual device for sending audio

Methods

init

Default constructor

-(instancetype)init:(ACSRawOutgoingAudioStreamOptions *)options;

Parameters

  • options -

sendRawAudioBuffer

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.

-(void)sendRawAudioBuffer:(ACSRawAudioBuffer *)rawAudioBuffer withCompletionHandler:(void (^)(NSError *error))completionHandler;

Parameters

  • rawAudioBuffer -
  • completionHandler - A block to be invoked asynchronously after the operation has finished.

Returns

  • void

Properties

delegate

An object you provide to receive events from this ACSRawOutgoingAudioStream instance.

@property(nonatomic, assign) id<ACSRawOutgoingAudioStreamDelegate> delegate;

expectedBufferSizeInBytes

Expected buffer size of Audio Buffer

@property (readonly) int64_t expectedBufferSizeInBytes;

properties

RawOutgoingAudioStreamProperties that this CallAudioStream is set to

@property (retain, nonnull, readonly) ACSRawOutgoingAudioStreamProperties * properties;