AudioUtilsImpl class

Helper providing direct access to audio playback related resources.

Constructors

AudioUtilsImpl()

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

ensureInitialized() → void
Ensures the underlying resources are initialized to reduce possible delays when playing once.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
once(AudioSource sound) Future<void>
Plays the provided sound once.
play(AudioSource music, {Duration fade = Duration.zero}) StreamSubscription<void>
Plays the provided music looped with the specified fade.
setDefaultSpeaker() Future<void>
Sets the default audio output device as the used one.
setSpeaker(AudioSpeakerKind speaker) Future<void>
Sets the speaker to use for audio output.
toString() String
A string representation of this object.
inherited

Operators

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