USound class abstract final

Fire-and-forget sound effects. Runs on a small pool of headless players that mix with other audio, so playing a click never pauses the user's music.

Properties

hashCode → int
The hash code for this object.
no setterinherited
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited

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

Static Properties

enabled ↔ bool
getter/setter pair
masterVolume ↔ double
getter/setter pair
poolSize ↔ int
getter/setter pair

Static Methods

dispose() → Future<void>
play(Object input, {double volume = 1, bool interrupt = false}) → Future<void>
preload(List<Object> sources) → Future<void>
Warms up the decoder for each asset so the first play has no latency.
resolve(Object input) → UMediaSource
stopAll() → Future<void>