Package net.avadeaux.klipspringer.alsa


package net.avadeaux.klipspringer.alsa

Package for accessing ALSA PCM audio functionality directly via the Java Native Interface.

There are at least two advantages with going this path instead of relying on the standard Java sound API.First, it can be more efficient if you shuffle a lot of audio data without manipulating it, since it works primarily with direct buffers. Second, it ensures that audio data is sent to and received from ALSA devices without any intemediary tampering with it in some way. By contrast, the standard Java sound system is normally compiled to access ALSA devices through the plug module, which performs conversion of formats and sample rates. (Conversion between various sample encoding formats does not require the plug module, but can be handled by PcmBuffer.)

Note that this package is only useful for systems with ALSA, which means most Linux systems but not many others. On systems without Alsa, use LinePlayer or LineTuner as a bridge between standard Java sound and the Klipspringer codec API.

This is part of the Klipspringer music playing software
© 2014–2025 Jesper Larsson, released as free software under GPL version 3 or later.
See klipspringer.avadeaux.net for more information.

  • Classes
    Class
    Description
    Base class that has static members for accessing ALSA devices, as well as being a common base class for Alsa.Player and Alsa.Tuner classes used for sending to or receiving from specific devices.
    Class for sending PCM data to an ALSA device.
    Class for receiving PCM data from an ALSA device.