Basics
Guides
API Reference
Basics
Guides
API Reference
[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.
Audio (Ajo = null)
Wraps an existing Audio AussomJavaObject.
Ajo is an AussomJavaObject around an FXGL Audio.setLooping (bool Looping)
Sets whether the audio loops when it reaches the end.
Looping is a bool.this objectsetVolume (double Volume)
Sets the playback volume in the range 0.0 to 1.0.
Volume is a double with the volume.this objectsetOnFinished (callback Cb)
Registers a callback that runs when playback finishes (only fires for non-looping audio).
Cb is a callback with no arguments.this objectplay ()
Starts or resumes playback.
this objectpause ()
Pauses playback at the current position.
this objectstop ()
Stops playback and resets to the start.
this object
Aussom
Write once. Embed everywhere.
Copyright 2026 Austin Lehman. All rights reserved.