problem when creating audio context in LWJGL

62 Views Asked by At

When I try to create audio context in LWJGL 3.3.1 I get this error:

[ALSOFT] (EE) Failed to set real-time priority for thread: Operation not permitted (1)

here is the code:

String defaultDeviceName = ALC10.alcGetString(0, ALC10.ALC_DEFAULT_DEVICE_SPECIFIER);
audioDevice = ALC10.alcOpenDevice(defaultDeviceName);
    
audioContext = ALC10.alcCreateContext(audioContext, (IntBuffer)null);
ALC10.alcMakeContextCurrent(audioContext);
    
ALCCapabilities alcCapabilities = ALC.createCapabilities(audioDevice);
ALCapabilities alCapabilities = AL.createCapabilities(alcCapabilities);

I would be grateful for any advice.

0

There are 0 best solutions below