선언
@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 인스턴스에서 이벤트를 수신하기 위해 제공하는 개체입니다.
@property(nonatomic, assign) id<ACSRawOutgoingAudioStreamDelegate> delegate;
예상 버퍼 크기In바이트
오디오 버퍼의 예상 버퍼 크기
@property (readonly) int64_t expectedBufferSizeInBytes;
properties
RawOutgoingAudioStream이 설정된 속성
@property (retain, nonnull, readonly) ACSRawOutgoingAudioStreamProperties * properties;