다음을 통해 공유


ACSRawOutgoingAudioStream 클래스

선언

@interface ACSRawOutgoingAudioStream : ACSOutgoingAudioStream;

Description

오디오를 보내기 위해 가상 디바이스를 활용하는 오디오 스트림

메서드

init

기본 생성자

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

매개 변수

  • options -

sendRawAudioBuffer

오디오 버퍼를 보내는 방법입니다. 버퍼는 스트림 속성에 지정된 형식, 샘플 속도 및 채널 모드와 일치해야 합니다. 블록 속성당 데이터의 경우 지정된 크기로 데이터를 전송하는 것이 좋지만 블록당 지정된 데이터로 균등하게 나눌 수 있는 한 더 큰 버퍼를 100ms로 보낼 수 있습니다.

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

매개 변수

  • rawAudioBuffer -
  • completionHandler - 작업이 완료된 후 비동기적으로 호출할 블록입니다.

반환

  • void

속성

대리자(delegate)

이 ACSRawOutgoingAudioStream instance 이벤트를 수신하기 위해 제공하는 개체입니다.

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

expectedBufferSizeInBytes

오디오 버퍼의 예상 버퍼 크기

@property (readonly) int64_t expectedBufferSizeInBytes;

properties

이 CallAudioStream이 로 설정된 RawOutgoingAudioStreamProperties

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