Package-level declarations

Types

Link copied to clipboard
class AudioContext(val device: AudioDevice, val alContext: Long, val pan: Double) : AutoCloseable
Link copied to clipboard
class AudioData(val format: AudioFormat = AudioFormat.STEREO_16, val rate: Int = 44100, val buffer: ByteBuffer)
Link copied to clipboard
class AudioDevice(val alDevice: Long, val pan: Double) : AutoCloseable
Link copied to clipboard
data class AudioDeviceDescription(val name: String, val pan: Double = 0.0)
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
class AudioQueueSource(context: AudioContext, source: Int, bufferCount: Int = 3, val queueSize: Int = 3, pullFunction: () -> AudioData?? = null) : AudioSource
Link copied to clipboard
open class AudioSource(source: Int, val context: AudioContext) : AutoCloseable
Link copied to clipboard

Functions

Link copied to clipboard
fun checkALCError(device: Long, taskName: String = "")

Checks for OpenAL Context (ALC) errors on a given audio device and logs the error details if any are found. The method uses alcGetError to determine if there are errors associated with the specified device. If an error is found, it throws an IllegalArgumentException with the corresponding error message.

Link copied to clipboard
fun checkALError(taskName: String = "", exception: Boolean = true)