file: AudioPlayer.aus

class: AudioPlayer

[20:7] extends: EngineService

Wraps FXGL's AudioPlayer (com.almasb.fxgl.audio.AudioPlayer), the engine service that tracks active Music and Sound instances, manages global volume, and pauses/resumes music when the window minimizes. Obtain at runtime via fxgl.getAudioPlayer(); the wrapper provides the play/pause/stop/loop API plus the bulk operations (stopAllSounds, stopAllMusic, stopAllSoundsAndMusic). Sound / Music wrappers from the existing aus/fxgl/Sound.aus and Music.aus pair with this service.

Methods