AudioFormat class

音频参数格式。

Properties

channel AudioChannel
音频数据的声道数。 1:单声道 2:双声道
final
hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
sampleRate AudioSampleRate
音频数据的采样率,单位为 Hz。
final
samplesPerCall int
单次回调的音频帧中包含的采样点数。你可以通过设置 samplesPerCall,sampleRate 和 channel,设置音频帧长。 默认值为 0,此时,采样点数取最小值。最小值为帧长间隔是 0.01s 时的值,即 sampleRate * channel * 0.01s。 最大值是 2048。超出取值范围时,采样点数取默认值。 该参数仅在设置读写回调时生效,调用 RTCVideo.enableAudioFrameCallback 开启只读模式回调时设置该参数不生效。
final

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited