AgoraAudioStreamConfiguration 类

Inherits from NSObject
Conforms to NSCoding
Declared in AgoraStreamingKit.h

概览

AudioStreamConfiguration 接口,包含音频流的属性。

+ defaultConfiguration

默认的音频流的属性。

+ (AgoraAudioStreamConfiguration *)defaultConfiguration

Declared In

AgoraStreamingKit.h

  sampleRateHz

音频的采样率 (Hz)。默认值为 44100。详见 AgoraAudioSampleRate

@property (nonatomic, assign) AgoraAudioSampleRate sampleRateHz

Declared In

AgoraStreamingKit.h

  bytesPerSample

每个采样点的字节数。

@property (nonatomic, assign) int bytesPerSample

详情

对 PCM 数据来说,一般使用两个字节,即 16 bit。

Declared In

AgoraStreamingKit.h

  soundType

音频的声道数。默认值为 1。详见 AgoraAudioSoundType

@property (nonatomic, assign) AgoraAudioSoundType soundType

Declared In

AgoraStreamingKit.h

  bitrate

音频码率 (Kbps)。默认值为 48。

@property (nonatomic, assign) int bitrate

Declared In

AgoraStreamingKit.h