1
0
forked from 0ad/0ad

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.
This commit is contained in:
Simon Brenner 2005-09-13 20:42:01 +00:00
parent d8da47bd0a
commit 2ab9584840
4 changed files with 8 additions and 6 deletions

Binary file not shown.

View File

@ -287,8 +287,8 @@ static void vcFiles(FILE* file, const char* path, int stage)
fprintf(file, "%s <FileConfiguration Name=\"%s|Win32\">\n", indent, config->name);
fprintf(file, "%s <Tool Name=\"VCCustomBuildTool\" "
"Description=\"Assembling $(InputPath)\" "
"CommandLine=\"%s -f win32 -o $(IntDir)\\$(InputName).obj $(InputPath)\" "
"Outputs=\"$(IntDir)\\$(InputName).obj\" />", indent, nasmPath);
"CommandLine=\"%s -f win32 -o $(IntDir)\\$(InputName).asm.obj $(InputPath)\" "
"Outputs=\"$(IntDir)\\$(InputName).asm.obj\" />", indent, nasmPath);
fprintf(file, "%s </FileConfiguration>", indent);
}
// Skip PCH for assembler files

View File

@ -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");
}
}

View File

@ -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