AgoraAudioParam Class Reference
| Inherits from | NSObject |
|---|---|
| Declared in | AgoraObjects.h |
Overview
The AgoraAudioParam interface. (iOS only)
Note: The SDK calculates the sample interval according to the
samplesPerCall, sampleRate, and channel values in the
AgoraAudioParam interface and triggers the following callbacks at the
calculated sample interval:
Sample interval (seconds) = samplesPerCall/(sampleRate × channel).
Ensure that the value of sample interval is equal to or greater than 0.01.
sampleRate
The audio sample rate (Hz), which can be set as one of the following values:
@property (assign, nonatomic) NSInteger sampleRateDiscussion
800016000(Default)320004410048000
Declared In
AgoraObjects.h
samplesPerCall
The number of samples. For example, set it as 1024 for RTMP or RTMPS streaming.
@property (assign, nonatomic) NSInteger samplesPerCallDeclared In
AgoraObjects.h