Double the default refresh rate for sound.

This commit is contained in:
Ray J. Greenwell
2026-05-21 14:36:39 -07:00
parent 5792d8697b
commit 778842c4cf
@@ -71,11 +71,19 @@ public class SoundManager
public static record InitArgs (int frequency, int refresh, boolean sync) {} public static record InitArgs (int frequency, int refresh, boolean sync) {}
// Match the pre-LWJGL3 AL.create("", 44100, 15, false). // Match the pre-LWJGL3 AL.create("", 44100, 15, false).
public static InitArgs getDefaultInitArgs () public static InitArgs getLegacyInitArgs ()
{ {
return new InitArgs(44100, 15, false); return new InitArgs(44100, 15, false);
} }
/**
* Get the "default" initialization args.
*/
public static InitArgs getDefaultInitArgs ()
{
return new InitArgs(44100, 30, false);
}
// To move to a modern 48 kHz mixer, use 48000 / 60 here. (OpenAL picks driver // To move to a modern 48 kHz mixer, use 48000 / 60 here. (OpenAL picks driver
// defaults (often 48 kHz / 50 Hz), resamples our 44.1 kHz assets, and audibly degrades quality. // defaults (often 48 kHz / 50 Hz), resamples our 44.1 kHz assets, and audibly degrades quality.
public static InitArgs getModernInitArgs () public static InitArgs getModernInitArgs ()