Package limn.sound
package limn.sound
Backend-neutral audio: an immutable PCM
AudioClip
(synthesized via AudioClip.tone(float, float, float) or decoded from WAV/OGG),
played through the Sounds facade over the installed
AudioEngine SPI. Mirrors limn.graphics.Images:
the toolkit stays free of any audio library; the LWJGL backend supplies the
OpenAL engine and the file decoder. The system alert beep is just an
AudioClip.tone(...) played through this package.-
ClassDescriptionA mixer bus: a named volume group every playback belongs to.An immutable, backend-independent chunk of PCM audio: interleaved 16-bit signed samples, 1 (mono) or 2 (stereo) channels, at a given sample rate.Decodes encoded audio bytes into an
AudioClip.Service-provider interface for audio output, the sound counterpart of theBackendrendering SPI.A pull source of PCM frames for streamed playback: music and long ambience decoded incrementally instead ofAudioClip-style all-at-once (a four minute track fully decoded is ~40 MB of heap; streamed it is a few hundred KB of ring buffers).A handle to a sound that has started playing on theAudioEngine.How to play a sound: volume, pitch, stereo pan or 3D position, looping, mixerbusand voice-stealPlayOptions.Priority.Voice-steal class; seePlayOptions.priority.Audio facade, backed by the running backend'sAudioEngineandAudioDecoder(both installed at startup, mirroringImages).