Interface StreamingSound
interface StreamingSound {
instanceCount: number;
name?: string;
onEnded: AudioSignal<StreamingSound>;
preloadCompletedCount: number;
state: SoundState;
}
instanceCount: number;
name?: string;
onEnded: AudioSignal<StreamingSound>;
preloadCompletedCount: number;
state: SoundState;
}
Properties
Readonlyinstance Count
instanceCount: number
Number of live instances.
Optional Readonlyname
name?: string
Optional name.
Readonlyon Ended
Fires when the sound finishes (all instances ended).
Readonlypreload Completed Count
preloadCompletedCount: number
Number of instances that have finished preloading.
Readonlystate
Current playback state.
A streaming, media-element-backed sound. Pure state — drive it with the streaming-sound functions.