checkALCError

fun checkALCError(device: Long, taskName: String = "")(source)

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.

Parameters

device

The handle to the audio device to check for errors.

taskName

An optional name of the task or operation being performed, used for logging purposes.