Package sidplay.audio


package sidplay.audio
Core audio interfaces and configuration classes used by all audio backends.

The sidplay.audio package defines the foundational abstractions for sound output in JSIDPlay2. It provides the AudioDriver interface, which defines the lifecycle and buffer access pattern for producing audio samples, and the VideoDriver interface for optional video frame output.

Implementations of these interfaces reside in platform-specific subpackages (such as sidplay.audio.xuggle or client.teavm.common.audio), while this package contains the shared contracts and configuration logic.

The AudioConfig class encapsulates playback parameters such as sample rate, buffer size, and number of channels, based on user or INI configuration. Common exception types and error handling for audio backends are also provided here.

Responsibilities

  • Define the standard audio driver and video driver interfaces
  • Provide configuration and initialization utilities
  • Serve as the common layer for all audio output backends
Autor:
Ken Händel