From 649aafac335b6e3a26ac1e15d8165cd219f116b4 Mon Sep 17 00:00:00 2001 From: Lance Date: Wed, 24 Nov 2010 02:54:28 +0000 Subject: [PATCH] Hand edited MSVC project files yay, fix for speex header issue git-svn-id: https://svn.code.sf.net/p/fteqw/code/branches/wip@3669 fc73d0e0-1445-4013-8a0c-d673dee63da5 --- engine/Makefile | 2 +- engine/client/snd_dma.c | 20 ++++++++-------- engine/dotnet2005/ftequake.vcproj | 34 +++++++++++++------------- engine/dotnet2008/ftequake.vcproj | 34 +++++++++++++------------- engine/dotnet2010/ftequake.vcxproj | 38 +++++++++++++++--------------- 5 files changed, 64 insertions(+), 64 deletions(-) diff --git a/engine/Makefile b/engine/Makefile index cb0207117..001e73f1e 100644 --- a/engine/Makefile +++ b/engine/Makefile @@ -248,7 +248,7 @@ else GNUC_FUNCS= -Dstrnicmp=strncasecmp -Dstricmp=strcasecmp -D_vsnprintf=vsnprintf -D_snprintf=snprintf endif -BASE_CFLAGS=$(BASE_ASM_CFLAGS) $(WARNINGFLAGS) $(GNUC_FUNCS) -I$(CLIENT_DIR) -I$(SERVER_DIR) -I$(COMMON_DIR) -I$(GL_DIR) -I$(D3D9_DIR) -I$(D3D7_DIR) -I$(PROGS_DIR) -I$(LIBS_DIR) -I$(LIBS_DIR)/dxsdk7/include -I$(LIBS_DIR)/sdl/include -I/usr/include/SDL -I$(LIBS_DIR)/sdl/include/SDL -I./libs/freetype2/include -I./libs/freetype2/include/freetype $(SVNREVISION) +BASE_CFLAGS=$(BASE_ASM_CFLAGS) $(WARNINGFLAGS) $(GNUC_FUNCS) -I$(CLIENT_DIR) -I$(SERVER_DIR) -I$(COMMON_DIR) -I$(GL_DIR) -I$(D3D9_DIR) -I$(D3D7_DIR) -I$(PROGS_DIR) -I$(LIBS_DIR) -I$(LIBS_DIR)/dxsdk7/include -I$(LIBS_DIR)/sdl/include -I/usr/include/SDL -I$(LIBS_DIR)/sdl/include/SDL -I./libs/freetype2/include -I./libs/freetype2/include/freetype -I./libs/speex $(SVNREVISION) CLIENT_ONLY_CFLAGS=-DCLIENTONLY SERVER_ONLY_CFLAGS=-DSERVERONLY JOINT_CFLAGS= diff --git a/engine/client/snd_dma.c b/engine/client/snd_dma.c index d1db6a69d..da91d815c 100644 --- a/engine/client/snd_dma.c +++ b/engine/client/snd_dma.c @@ -163,8 +163,8 @@ void S_SoundInfo_f(void) } #ifdef VOICECHAT -#include "speex/speex.h" -#include "speex/speex_preprocess.h" +#include +#include static struct { qboolean inited; @@ -518,7 +518,7 @@ void S_Voip_Transmit(unsigned char clc, sizebuf_t *buf) s_speex.keeps = 0; } } - else + else s_speex.keeps = s_speex.samplerate * cl_voip_vad_delay.value; if (outpos) { @@ -2183,15 +2183,15 @@ void S_RawAudio(int sourceid, qbyte *data, int speed, int samples, int channels, { extern cvar_t snd_linearresample_stream; short *outpos = (short *)(newcache->data + spare * (s->sfxcache->numchannels) * s->sfxcache->width); - SND_ResampleStream(data, - speed, - width, + SND_ResampleStream(data, + speed, + width, channels, samples, - outpos, - snd_speed, - s->sfxcache->width, - s->sfxcache->numchannels, + outpos, + snd_speed, + s->sfxcache->width, + s->sfxcache->numchannels, snd_linearresample_stream.ival); } diff --git a/engine/dotnet2005/ftequake.vcproj b/engine/dotnet2005/ftequake.vcproj index f374a2138..62b3c094c 100644 --- a/engine/dotnet2005/ftequake.vcproj +++ b/engine/dotnet2005/ftequake.vcproj @@ -50,7 +50,7 @@ + @@ -363,7 +363,7 @@ Disabled - ..\client;../libs/freetype2/include;../common;../server;../gl;../sw;../qclib;../libs;../libs/dxsdk7/include;%(AdditionalIncludeDirectories) + ../libs/speex;..\client;../libs/freetype2/include;../common;../server;../gl;../sw;../qclib;../libs;../libs/dxsdk7/include;%(AdditionalIncludeDirectories) MINIMAL;_DEBUG;GLQUAKE;WIN32;_WINDOWS;%(PreprocessorDefinitions) MultiThreaded Fast @@ -411,7 +411,7 @@ Disabled - ..\client;../libs/freetype2/include;../common;../server;../gl;../sw;../qclib;../libs;../libs/dxsdk7/include;../d3d;../d3d9;../libs/dxsdk9/include;%(AdditionalIncludeDirectories) + ../libs/speex;..\client;../libs/freetype2/include;../common;../server;../gl;../sw;../qclib;../libs;../libs/dxsdk7/include;../d3d;../d3d9;../libs/dxsdk9/include;%(AdditionalIncludeDirectories) MINIMAL;_DEBUG;GLQUAKE;WIN32;_WINDOWS;%(PreprocessorDefinitions) MultiThreaded Fast @@ -460,7 +460,7 @@ Disabled - ..\client;../libs/freetype2/include;../common;../server;../gl;../sw;../qclib;../libs;../d3d9;../libs/dxsdk9/include;../libs/dxsdk7/include;%(AdditionalIncludeDirectories) + ../libs/speex;..\client;../libs/freetype2/include;../common;../server;../gl;../sw;../qclib;../libs;../d3d9;../libs/dxsdk9/include;../libs/dxsdk7/include;%(AdditionalIncludeDirectories) _DEBUG;D3DQUAKE;WIN32;_WINDOWS;%(PreprocessorDefinitions) MultiThreadedDebug Fast @@ -508,7 +508,7 @@ Disabled - ..\client;../libs/freetype2/include;../common;../server;../gl;../sw;../qclib;../libs;../libs/dxsdk7/include;../d3d;../d3d9;../libs/dxsdk9/include;%(AdditionalIncludeDirectories) + ../libs/speex;..\client;../libs/freetype2/include;../common;../server;../gl;../sw;../qclib;../libs;../libs/dxsdk7/include;../d3d;../d3d9;../libs/dxsdk9/include;%(AdditionalIncludeDirectories) _DEBUG;D3DQUAKE;WIN32;_WINDOWS;%(PreprocessorDefinitions) MultiThreadedDebug true @@ -559,7 +559,7 @@ true Speed true - ..\client;../libs/freetype2/include;../common;../server;../gl;../sw;../qclib;../libs;../libs/dxsdk7/include;%(AdditionalIncludeDirectories) + ../libs/speex;..\client;../libs/freetype2/include;../common;../server;../gl;../sw;../qclib;../libs;../libs/dxsdk7/include;%(AdditionalIncludeDirectories) MINIMAL;NDEBUG;GLQUAKE;WIN32;_WINDOWS;%(PreprocessorDefinitions) true @@ -612,7 +612,7 @@ MaxSpeed OnlyExplicitInline - ..\client;../libs/freetype2/include;../common;../server;../gl;../sw;../qclib;../libs;../libs/dxsdk7/include;../d3d;../d3d9;../libs/dxsdk9/include;%(AdditionalIncludeDirectories) + ../libs/speex;..\client;../libs/freetype2/include;../common;../server;../gl;../sw;../qclib;../libs;../libs/dxsdk7/include;../d3d;../d3d9;../libs/dxsdk9/include;%(AdditionalIncludeDirectories) MINIMAL;NDEBUG;GLQUAKE;WIN32;_WINDOWS;%(PreprocessorDefinitions) true MultiThreaded @@ -662,7 +662,7 @@ Disabled - ..\client;../libs/freetype2/include;../common;../server;../gl;../sw;../qclib;../libs;../libs/dxsdk7/include;%(AdditionalIncludeDirectories) + ../libs/speex;..\client;../libs/freetype2/include;../common;../server;../gl;../sw;../qclib;../libs;../libs/dxsdk7/include;%(AdditionalIncludeDirectories) _DEBUG;GLQUAKE;WIN32;_WINDOWS;MULTITHREAD;%(PreprocessorDefinitions) MultiThreadedDebug true @@ -708,7 +708,7 @@ Disabled - ..\client;../libs/freetype2/include;../common;../server;../gl;../sw;../qclib;../libs;../libs/dxsdk7/include;../d3d;../d3d9;../libs/dxsdk9/include;%(AdditionalIncludeDirectories) + ../libs/speex;..\client;../libs/freetype2/include;../common;../server;../gl;../sw;../qclib;../libs;../libs/dxsdk7/include;../d3d;../d3d9;../libs/dxsdk9/include;%(AdditionalIncludeDirectories) _DEBUG;GLQUAKE;WIN32;_WINDOWS;MULTITHREAD;%(PreprocessorDefinitions) MultiThreadedDebug true @@ -754,7 +754,7 @@ MinSpace OnlyExplicitInline - ..\client;../libs/freetype2/include;../common;../server;../gl;../sw;../qclib;../libs;../libs/dxsdk7/include;%(AdditionalIncludeDirectories) + ../libs/speex;..\client;../libs/freetype2/include;../common;../server;../gl;../sw;../qclib;../libs;../libs/dxsdk7/include;%(AdditionalIncludeDirectories) NDEBUG;WIN32;_WINDOWS;SERVERONLY;%(PreprocessorDefinitions) true MultiThreaded @@ -804,7 +804,7 @@ MinSpace OnlyExplicitInline - ..\client;../libs/freetype2/include;../common;../server;../gl;../sw;../qclib;../libs;../libs/dxsdk7/include;../d3d;../d3d9;../libs/dxsdk9/include;%(AdditionalIncludeDirectories) + ../libs/speex;..\client;../libs/freetype2/include;../common;../server;../gl;../sw;../qclib;../libs;../libs/dxsdk7/include;../d3d;../d3d9;../libs/dxsdk9/include;%(AdditionalIncludeDirectories) NDEBUG;WIN32;_WINDOWS;SERVERONLY;%(PreprocessorDefinitions) true MultiThreaded @@ -854,7 +854,7 @@ MaxSpeed OnlyExplicitInline - ..\client;../libs/freetype2/include;../common;../server;../gl;../sw;../qclib;../libs;../libs/dxsdk7/include;%(AdditionalIncludeDirectories) + ../libs/speex;..\client;../libs/freetype2/include;../common;../server;../gl;../sw;../qclib;../libs;../libs/dxsdk7/include;%(AdditionalIncludeDirectories) NDEBUG;WIN32;_WINDOWS;GLQUAKE;USE_D3D;D3DQUAKE;%(PreprocessorDefinitions) true MultiThreaded @@ -904,7 +904,7 @@ MaxSpeed OnlyExplicitInline - ..\client;../libs/freetype2/include;../common;../server;../gl;../sw;../qclib;../libs;../libs/dxsdk7/include;../d3d;../d3d9;../libs/dxsdk9/include;%(AdditionalIncludeDirectories) + ../libs/speex;..\client;../libs/freetype2/include;../common;../server;../gl;../sw;../qclib;../libs;../libs/dxsdk7/include;../d3d;../d3d9;../libs/dxsdk9/include;%(AdditionalIncludeDirectories) NDEBUG;WIN32;_WINDOWS;GLQUAKE;USE_D3D;D3DQUAKE;%(PreprocessorDefinitions) true MultiThreaded @@ -953,7 +953,7 @@ Disabled - ..\client;../libs/freetype2/include;../common;../server;../gl;../sw;../qclib;../libs;../libs/dxsdk7/include;%(AdditionalIncludeDirectories) + ../libs/speex;..\client;../libs/freetype2/include;../common;../server;../gl;../sw;../qclib;../libs;../libs/dxsdk7/include;%(AdditionalIncludeDirectories) _DEBUG;WIN32;_WINDOWS;SERVERONLY;%(PreprocessorDefinitions) true MultiThreaded @@ -1002,7 +1002,7 @@ Disabled - ..\client;../libs/freetype2/include;../common;../server;../gl;../sw;../qclib;../libs;../libs/dxsdk7/include;../d3d;../d3d9;../libs/dxsdk9/include;%(AdditionalIncludeDirectories) + ../libs/speex;..\client;../libs/freetype2/include;../common;../server;../gl;../sw;../qclib;../libs;../libs/dxsdk7/include;../d3d;../d3d9;../libs/dxsdk9/include;%(AdditionalIncludeDirectories) _DEBUG;WIN32;_WINDOWS;SERVERONLY;%(PreprocessorDefinitions) true MultiThreaded @@ -1053,7 +1053,7 @@ Disabled - ..\client;../libs/freetype2/include;../common;../server;../gl;../sw;../qclib;../libs;../libs/dxsdk7/include;%(AdditionalIncludeDirectories) + ../libs/speex;..\client;../libs/freetype2/include;../common;../server;../gl;../sw;../qclib;../libs;../libs/dxsdk7/include;%(AdditionalIncludeDirectories) _DEBUG;WIN32;_WINDOWS;GLQUAKE;USE_D3D;D3DQUAKE;%(PreprocessorDefinitions) MultiThreadedDebug Fast @@ -1102,7 +1102,7 @@ Disabled - ..\client;../libs/freetype2/include;../common;../server;../gl;../sw;../qclib;../libs;../libs/dxsdk7/include;../d3d;../d3d9;../libs/dxsdk9/include;%(AdditionalIncludeDirectories) + ../libs/speex;..\client;../libs/freetype2/include;../common;../server;../gl;../sw;../qclib;../libs;../libs/dxsdk7/include;../d3d;../d3d9;../libs/dxsdk9/include;%(AdditionalIncludeDirectories) _DEBUG;WIN32;_WINDOWS;GLQUAKE;USE_D3D;D3DQUAKE;%(PreprocessorDefinitions) MultiThreadedDebug Fast @@ -1157,7 +1157,7 @@ true Speed true - ..\client;../libs/freetype2/include;../common;../server;../gl;../sw;../qclib;../libs;../libs/dxsdk7/include;%(AdditionalIncludeDirectories) + ../libs/speex;..\client;../libs/freetype2/include;../common;../server;../gl;../sw;../qclib;../libs;../libs/dxsdk7/include;%(AdditionalIncludeDirectories) NDEBUG;GLQUAKE;WIN32;_WINDOWS;%(PreprocessorDefinitions) true @@ -1213,7 +1213,7 @@ MaxSpeed AnySuitable - ..\client;../libs/freetype2/include;../common;../server;../gl;../sw;../qclib;../libs;../libs/dxsdk7/include;../d3d;../d3d9;../libs/dxsdk9/include;%(AdditionalIncludeDirectories) + ../libs/speex;..\client;../libs/freetype2/include;../common;../server;../gl;../sw;../qclib;../libs;../libs/dxsdk7/include;../d3d;../d3d9;../libs/dxsdk9/include;%(AdditionalIncludeDirectories) NDEBUG;GLQUAKE;WIN32;_WINDOWS;%(PreprocessorDefinitions) true MultiThreaded