Sound class Audio

Manages an audio resource, its loading state, and playback properties.

Constructors

Sound()

Properties

bufferHandle ↔ AudioBufferHandle?
The decoded audio buffer (opaque, platform-specific).
getter/setter pair
hashCode int
The hash code for this object.
no setterinherited
lastTimePlayed DateTime?
The DateTime when the sound was last played.
getter/setter pair
retriggerDelay Duration
The minimum Duration that must pass before this sound can be played again.
getter/setter pair
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
state LoadingState
The current loading state of the sound.
getter/setter pair

Methods

dispose() → dynamic
Releases the audio resources held by this sound and resets its state.
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