LOTS OF CHANGES. was hoping to get revision 5000 perfect, but really that's never going to happen. this has gone on for too long now.

vulkan, wasapi, quake injector features added.
irc, avplug, cef plugins/drivers reworked/updated/added
openal reverb, doppler effects added.
'dir' console command now attempts to view clicked files.
lots of warning fixes, should now only be deprecation warnings for most targets (depending on compiler version anyway...).
SendEntity finally reworked to use flags properly.
effectinfo improved, other smc-targetted fixes.
mapcluster stuff now has support for linux.
.basebone+.baseframe now exist in ssqc.
qcc: -Fqccx supports qccx syntax, including qccx hacks. don't expect these to work in fteqw nor dp though.
qcc: rewrote function call handling to use refs rather than defs. this makes struct passing more efficient and makes the __out keyword usable with fields etc.
qccgui: can cope a little better with non-unicode files. can now represent most quake chars.
qcc: suppressed warnings from *extensions.qc

git-svn-id: https://svn.code.sf.net/p/fteqw/code/trunk@5000 fc73d0e0-1445-4013-8a0c-d673dee63da5
This commit is contained in:
Spoike 2016-07-12 00:40:13 +00:00
parent 5920bf05fb
commit 27a59a0cbc
271 changed files with 101001 additions and 64352 deletions

View file

@ -24,7 +24,7 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
#define PAINTBUFFER_SIZE 2048
float voicevolumemod = 1;
portable_samplegroup_t paintbuffer[PAINTBUFFER_SIZE];
portable_samplegroup_t paintbuffer[PAINTBUFFER_SIZE]; //FIXME: we really ought to be using SSE and floats or something.
int *snd_p, snd_vol;
short *snd_out;
@ -58,8 +58,7 @@ void S_TransferPaintBuffer(soundcardinfo_t *sc, int endtime)
{
for (i = 0; i < numc; i++)
{
val = *p;// * snd_vol) >> 8;
p++;
val = *p++;// * snd_vol) >> 8;
if (val > 0x7fff)
val = 0x7fff;
else if (val < (short)0x8000)
@ -78,8 +77,7 @@ void S_TransferPaintBuffer(soundcardinfo_t *sc, int endtime)
{
for (i = 0; i < numc; i++)
{
val = *p;// * snd_vol) >> 8;
p++;
val = *p++;// * snd_vol) >> 8;
if (val > 0x7fff)
val = 0x7fff;
else if (val < (short)0x8000)
@ -91,6 +89,20 @@ void S_TransferPaintBuffer(soundcardinfo_t *sc, int endtime)
count -= numc;
}
}
else if (sc->sn.samplebits == 32)
{
float *out = (float *) pbuf;
while (count)
{
for (i = 0; i < numc; i++)
{
out[out_idx] = *p++ * (1.0 / 32768);
out_idx = (out_idx + 1) % outlimit;
}
p += MAXSOUNDCHANNELS - numc;
count -= numc;
}
}
sc->Unlock(sc, pbuf);
}
@ -470,7 +482,8 @@ static void SND_PaintChannel16_O2I1 (channel_t *ch, sfxcache_t *sc, int starttim
sfx = (signed short *)sc->data;
for (i=0 ; i<count ; i++)
{
data = sfx[pos>>PITCHSHIFT];
float frac = pos&((1<<PITCHSHIFT)-1);
data = sfx[pos>>PITCHSHIFT] * (1-frac) + sfx[(pos>>PITCHSHIFT)+1] * frac;
pos += ch->rate;
paintbuffer[starttime+i].s[0] += (leftvol * data)>>8;
paintbuffer[starttime+i].s[1] += (rightvol * data)>>8;