to go with the voip tweak partial commit.

git-svn-id: https://svn.code.sf.net/p/fteqw/code/trunk@4379 fc73d0e0-1445-4013-8a0c-d673dee63da5
This commit is contained in:
Spoike 2013-05-31 01:20:41 +00:00
parent 300eaaddd4
commit 60da9e0e95

View file

@ -492,13 +492,14 @@ qintptr_t VARGS Plug_S_RawAudio(void *offset, quintptr_t mask, const qintptr_t *
int samples = VM_LONG(arg[3]);
int channels = VM_LONG(arg[4]);
int width = VM_LONG(arg[5]);
int volume = VM_FLOAT(arg[6]);
int datasize = samples * channels * width;
if (VM_OOB(arg[1], datasize) || datasize < 1)
return false;
S_RawAudio(sourceid, data, speed, samples, channels, width);
S_RawAudio(sourceid, data, speed, samples, channels, width, volume);
return 0;
}