mirror of
https://github.com/nzp-team/fteqw.git
synced 2024-11-14 08:21:05 +00:00
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:
parent
300eaaddd4
commit
60da9e0e95
1 changed files with 2 additions and 1 deletions
|
@ -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 samples = VM_LONG(arg[3]);
|
||||||
int channels = VM_LONG(arg[4]);
|
int channels = VM_LONG(arg[4]);
|
||||||
int width = VM_LONG(arg[5]);
|
int width = VM_LONG(arg[5]);
|
||||||
|
int volume = VM_FLOAT(arg[6]);
|
||||||
|
|
||||||
int datasize = samples * channels * width;
|
int datasize = samples * channels * width;
|
||||||
|
|
||||||
if (VM_OOB(arg[1], datasize) || datasize < 1)
|
if (VM_OOB(arg[1], datasize) || datasize < 1)
|
||||||
return false;
|
return false;
|
||||||
|
|
||||||
S_RawAudio(sourceid, data, speed, samples, channels, width);
|
S_RawAudio(sourceid, data, speed, samples, channels, width, volume);
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue