file: Audio.aus

class: Audio

[15:7] extends: FxObj

Wraps FXGL's Audio, the abstract base for both Music and Sound payloads. The concrete subclasses (DesktopMusic, DesktopSound) are loader-internal so Aussom users usually receive an Audio through Sound.audio or Music.audio rather than constructing one directly. Exposes the play / pause / stop / setVolume / setLooping / setOnFinished controls common to every backend.

Methods