Search code examples
javalwjglopenal

AL lib: (EE) UpdateDeviceParams: Failed to set 44100hz, got 48000hz instead


I'm coding to manage OpenAL in java using lwjgl 3 and when I create the ALContext with this line:

ALContext alContext = ALContext.create();

When I execute the console prints this advice

AL lib: (EE) UpdateDeviceParams: Failed to set 44100hz, got 48000hz instead

Any idea about whats wrong?

By the way, it's getting really hard coding with lwjgl 3, the only place I found some kind of guide is here lwjgl github


Solution

  • On my ASUS desktop, I have Realtek HD Audio Manager setting the Default Audio format to 24Bits 44800 Hz, thus my open AL applications are not able to request a 44100 Hz device. Changing that default format to 44100 will help solve the problem.

    I wish it could help, because it did take me a lot of time to figure this out!