SsAudioEvent class
An Audio trigger. SpriteStudio audio is trigger-only: this hands you the sound to play (by name and/or hash) plus its loop count, and your app plays it with whatever audio stack it likes — the player never produces sound itself.
- Annotations
Constructors
Properties
- frameNo → int
-
The frame the key is authored on — not necessarily the frame it was
noticed on, since one SpriteStudioPlayer.advance can step across several
and fires every key in between.
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- loopNum → int
-
The play count: how many times to play the sound (
>= 1). SpriteStudio audio has no infinite-loop concept — despite the name, this is a repeat count, not a loop flag. Playback is the app's job; honour this count in your own audio stack.final - partIndex → int
-
Index of the part carrying the audio trigger.
final
- partName → String?
-
Name of that part, or null when the pack has no name for it.
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- soundListNameHash → int
-
FNV hash of the owning sound-list name (0 if unset).
final
- soundName → String?
-
The sound's name, or null if the pack referenced it only by hash.
final
- soundNameHash → int
-
FNV hash of the sound name (0 if unset). Matches a
SoundListentry.final - source → int?
-
The source that fired it — a handle for SpriteStudioPlayer.sourceWeight
and its siblings — or null when the decoder was given none. Tells track
0's animation apart from an overlay or the outgoing side of a crossfade
that fires too.
final
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
override
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited