NERtcAudioEffectOptions class
音效构造参数类
- Annotations
-
- @JsonSerializable.new()
Constructors
- NERtcAudioEffectOptions({required String path, int loopCount = 1, bool sendEnabled = true, int sendVolume = 100, bool playbackEnabled = true, int playbackVolume = 100, int progressInterval = 1000, int sendWithAudioType = 0, int startTimestamp = 0})
-
const
-
NERtcAudioEffectOptions.fromJson(Map<
String, dynamic> json) -
factory
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- loopCount → int
-
循环次数, <= 0, 表示无限循环,默认 1
final
- path → String
-
文件地址
final
- playbackEnabled → bool
-
是否播放(默认 true)
final
- playbackVolume → int
-
播放音量
0 - 100(默认 100)final - progressInterval → int
-
音效播放进度回调间隔,单位ms,取值范围为 100~10000, 默认1000ms
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- sendEnabled → bool
-
是否发送(默认 true)
final
- sendVolume → int
-
发送音量
0 - 100(默认 100)final - sendWithAudioType → int
-
音效跟随音频主流还是辅流,默认跟随主流,详细信息参考NERtcAudioStreamType
final
- startTimestamp → int
-
音效文件开始播放的时间,UTC 时间戳,默认值为 0,表示立即播放。
final
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toJson(
) → Map< String, dynamic> -
toString(
) → String -
A string representation of this object.
override
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited