From 2ab958484031f6ac4a946371034a981148971573 Mon Sep 17 00:00:00 2001 From: olsner Date: Tue, 13 Sep 2005 20:42:01 +0000 Subject: [PATCH] snd.cpp: initialize listener orientation and position (my OpenAL drivers complained about the old random values) premake stuff: call assembler objects *.asm.obj instead of *.obj (so that ia32.asm doesn't collide with ia32.cpp) ia32.asm: use .text section for proper linkage This was SVN commit r2709. --- build/premake/premake.exe | Bin 516096 -> 516096 bytes build/premake/src/Src/vs7.c | 4 ++-- source/lib/res/sound/snd.cpp | 8 +++++--- source/lib/sysdep/ia32.asm | 2 +- 4 files changed, 8 insertions(+), 6 deletions(-) diff --git a/build/premake/premake.exe b/build/premake/premake.exe index 41b1eb38ce09b3676c1c9d0df70cb1405b40124c..b57d99884363c788587517927e114922c9c260b5 100755 GIT binary patch delta 84 zcmZoTAm4C6e!>T4?JsH@KQH~qxS@IG|Mr>x8G)Dyh?#+yW&6zktl|@=J4|4coPKcv kTPAa2aqe`>iEPFoMtk-|w(Z#y*?XB7`M3X^%+Bru0PE)^ssI20 delta 78 zcmZoTAm4C6e!>Ulx8G)Dyh?#+yW&6zktl|^d7{Flqx(RG8 c)6FKb8MWt3WZRxIk-dkBk$3yg$?WVt0Ng_%(EtDd diff --git a/build/premake/src/Src/vs7.c b/build/premake/src/Src/vs7.c index 4a44cc53f1..b199c5967b 100644 --- a/build/premake/src/Src/vs7.c +++ b/build/premake/src/Src/vs7.c @@ -287,8 +287,8 @@ static void vcFiles(FILE* file, const char* path, int stage) fprintf(file, "%s \n", indent, config->name); fprintf(file, "%s ", indent, nasmPath); + "CommandLine=\"%s -f win32 -o $(IntDir)\\$(InputName).asm.obj $(InputPath)\" " + "Outputs=\"$(IntDir)\\$(InputName).asm.obj\" />", indent, nasmPath); fprintf(file, "%s ", indent); } // Skip PCH for assembler files diff --git a/source/lib/res/sound/snd.cpp b/source/lib/res/sound/snd.cpp index 29efffbbe1..8cd08f427e 100755 --- a/source/lib/res/sound/snd.cpp +++ b/source/lib/res/sound/snd.cpp @@ -265,8 +265,8 @@ static int alc_init() /////////////////////////////////////////////////////////////////////////////// static float al_listener_gain = 1.0; -static float al_listener_pos[3]; -static float al_listener_orientation[6]; +static float al_listener_pos[3] = { 0, 0, 0 }; +static float al_listener_orientation[6] = {0, 0, -1, 0, 1, 0}; // float view_direction[3], up_vector[3]; passed directly to OpenAL @@ -276,9 +276,11 @@ static void al_listener_latch() if(al_initialized) { alListenerf(AL_GAIN, al_listener_gain); + al_check("al_listener_latch: gain"); alListenerfv(AL_POSITION, al_listener_pos); + al_check("al_listener_latch: pos"); alListenerfv(AL_ORIENTATION, al_listener_orientation); - al_check("al_listener_latch"); + al_check("al_listener_latch: orientation"); } } diff --git a/source/lib/sysdep/ia32.asm b/source/lib/sysdep/ia32.asm index 586bd55a4a..a90d4735ea 100644 --- a/source/lib/sysdep/ia32.asm +++ b/source/lib/sysdep/ia32.asm @@ -2,7 +2,7 @@ CACHEBLOCK equ 128 BP_MIN_THRESHOLD_64 equ 192*1024 MOVNTQ_MIN_THRESHOLD_64 equ 64*1024 - +section .text %macro MC_UNROLLED_MOVSD 0 and ebx, 63