Package limn.sound
Class AudioBus
java.lang.Object
limn.sound.AudioBus
A mixer bus: a named volume group every playback belongs to. The effective
volume of a sound is
playGain × busGain × masterGain, and bus/master
changes apply live to everything already sounding; this is the
options-screen "Music volume / Effects volume / Master" model.
Three conventional buses are predefined; of(String) creates
additional ones (voice, ambience…). Buses are identity objects: hold and
reuse the instance; two of("voice") calls are two distinct buses.
Gains live in the AudioEngine (set via Sounds.setBusGain(limn.sound.AudioBus, float)),
not on the bus object, so the bus itself is freely shareable.
-
Field Summary
Fields -
Method Summary
-
Field Details
-
SFX
Sound effects: the default bus ofPlayOptions.DEFAULTS. -
MUSIC
Background music (long, looping, usually streamed). -
UI
Interface feedback beeps/clicks.
-
-
Method Details