changed default samplerate to 48khz

This commit is contained in:
DaniTheSkunk 2022-11-27 06:59:12 +00:00
parent 978614be36
commit 5d6dbb17cf
1 changed files with 1 additions and 1 deletions

View File

@ -40,7 +40,7 @@ public abstract class BaseGame {
* @param windowTitle the title of the game's window * @param windowTitle the title of the game's window
*/ */
public BaseGame(Vec2i windowSize, String windowTitle) { public BaseGame(Vec2i windowSize, String windowTitle) {
audioEngine = new AudioEngine(44100, 256, 8); audioEngine = new AudioEngine(48000, 256, 8);
mixer = new Mixer(audioEngine, 2); mixer = new Mixer(audioEngine, 2);
samplePlayer = new SamplePlayer(audioEngine); samplePlayer = new SamplePlayer(audioEngine);
Node.connect(samplePlayer, 0, mixer, 0); Node.connect(samplePlayer, 0, mixer, 0);