AudioClip class abstract Audio

A loaded, playable piece of audio owned by an AudioEngine.

Clips are backend-typed handles. Load them with AudioEngine.loadClip and play them through an AudioSource or AudioEngine.playOneShot. A clip may be played by any number of sources at once.

Constructors

AudioClip()

Properties

duration → Duration?
The decoded length, or null when the backend cannot determine it (some streamed formats).
no setter
hashCode → int
The hash code for this object.
no setterinherited
isDisposed → bool
Whether dispose has been called.
no setter
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited

Methods

dispose() → void
Releases the backend resources for this clip. Playing a disposed clip throws. Sources currently playing it are stopped.
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