FlameAudio class

Handles flame audio functions

Constructors

FlameAudio()

Properties

audioCache AudioCache
read / write
hashCode int
The hash code for this object. [...]
read-only, inherited
runtimeType Type
A representation of the runtime type of the object.
read-only, inherited

Methods

clear(String file) → void
Clears the file in the cache
clearAll() → void
Clears all the audios in the cache
disableLog() → void
Disables audio related logs
load(String file) Future<File>
Prefetch an audio in the cache
loadAll(List<String> files) Future<List<File>>
Prefetch a list of audios in the cache
loop(String file, {dynamic volume: 1.0}) Future<AudioPlayer>
Plays, and keep looping the given file
loopLongAudio(String file, {dynamic volume: 1.0}) Future<AudioPlayer>
Plays, and keep looping the given file This method supports long audio files [...]
noSuchMethod(Invocation invocation) → dynamic
Invoked when a non-existent method or property is accessed. [...]
inherited
play(String file, {dynamic volume: 1.0}) Future<AudioPlayer>
Plays a single run of the given file
playLongAudio(String file, {dynamic volume: 1.0}) Future<AudioPlayer>
Plays a single run of the given file file This method supports long audio files
toString() String
Returns a string representation of this object.
inherited

Operators

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