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.
  • Class
    Description
    A 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 the Backend rendering SPI.
    A pull source of PCM frames for streamed playback: music and long ambience decoded incrementally instead of AudioClip-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 the AudioEngine.
    How to play a sound: volume, pitch, stereo pan or 3D position, looping, mixer bus and voice-steal PlayOptions.Priority.
    Voice-steal class; see PlayOptions.priority.
    Audio facade, backed by the running backend's AudioEngine and AudioDecoder (both installed at startup, mirroring Images).