From 6e8870b4854757998ead2f754eacab45144fdf91 Mon Sep 17 00:00:00 2001 From: Jorge Bernal Date: Wed, 29 Aug 2018 00:50:22 +0200 Subject: [PATCH] UPBGE: Set audiorate to 48000Hz by default 48000Hz is the newer standard used in professional audio recording as it "works" better with multiple frame rates. Additionally, it solves the frequent "Error AL lib: UpdateDeviceParams: Failed to set 44100hz, got 48000hz instead" raised in a lot realtek, intel, nvidia integrated sound cards (some of them even with crash). And it seems to works better with HRTF binaural sound (in me own TODO list) TODO: To make this value configurable by user --- source/gameengine/GamePlayer/GPG_ghost.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/source/gameengine/GamePlayer/GPG_ghost.cpp b/source/gameengine/GamePlayer/GPG_ghost.cpp index 43c279e037fa..245341e3a530 100644 --- a/source/gameengine/GamePlayer/GPG_ghost.cpp +++ b/source/gameengine/GamePlayer/GPG_ghost.cpp @@ -771,7 +771,7 @@ int main(int argc, // XXX add the ability to change this values to the command line parsing. U.mixbufsize = 2048; U.audiodevice = 2; - U.audiorate = 44100; + U.audiorate = 48000; U.audioformat = 0x24; U.audiochannels = 2;