DFAudio class

音效播放

Constructors

DFAudio()

Properties

count int
计数
getter/setter pair
hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
timer Timer?
定时播放
getter/setter pair

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
startPlay(List<String> files, {dynamic stepTime = 400, dynamic loop = false}) → void
开始播放音效序列
stopPlay() → void
取消播放音效序列
toString() String
A string representation of this object.
inherited

Operators

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

Static Properties

audioCache ↔ AudioCache
音频类
getter/setter pair
backgroundMusic BackgroundMusic
背景音乐
getter/setter pair
prefix String
getter/setter pair

Static Methods

loop(String file, {double volume = 1.0}) Future<AudioPlayer>
循环播放
loopLongAudio(String file, {double volume = 1.0}) Future<AudioPlayer>
循环播放长音频
play(String file, {double volume = 1.0}) Future<AudioPlayer>
播放短音频
playLongAudio(String file, {double volume = 1.0}) Future<AudioPlayer>
播放长音频