Actually, 44100 matches our audio samples, let's keep the old defaults.

Easy enough to upgrade if you need it.
This commit is contained in:
Ray J. Greenwell
2026-05-10 18:35:30 -07:00
parent 4b3ab93baa
commit 48fc959b3c
@@ -88,17 +88,17 @@ public class SoundManager
// TODO: Should be this:::: ARGH! // TODO: Should be this:::: ARGH!
//public static record InitArgs (int frequency, int refresh, boolean sync) {} //public static record InitArgs (int frequency, int refresh, boolean sync) {}
// To move to a modern 48 kHz mixer, use 48000 / 60 here. (OpenAL picks driver // Match the pre-LWJGL3 AL.create("", 44100, 15, false).
// defaults (often 48 kHz / 50 Hz), resamples our 44.1 kHz assets, and audibly degrades quality.
public static InitArgs getDefaultInitArgs () public static InitArgs getDefaultInitArgs ()
{ {
return new InitArgs(48000, 60, false); return new InitArgs(44100, 15, false);
} }
// Match the pre-LWJGL3 AL.create("", 44100, 15, false). // To move to a modern 48 kHz mixer, use 48000 / 60 here. (OpenAL picks driver
public static InitArgs getLegacyInitArgs () // defaults (often 48 kHz / 50 Hz), resamples our 44.1 kHz assets, and audibly degrades quality.
public static InitArgs getModernInitArgs ()
{ {
return new InitArgs(44100, 15, false); return new InitArgs(48000, 60, false);
} }
/** /**