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:
@@ -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);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|||||||
Reference in New Issue
Block a user