diff options
author | icculus <icculus@edf5b092-35ff-0310-97b2-ce42778d08ea> | 2008-06-04 21:49:15 +0000 |
---|---|---|
committer | icculus <icculus@edf5b092-35ff-0310-97b2-ce42778d08ea> | 2008-06-04 21:49:15 +0000 |
commit | b949e776ca74e15d78e597fbcb86630cc6c257f7 (patch) | |
tree | 0dd0824f49fdd8de2841b8b3b887a0a483899e8c /code/client/cl_parse.c | |
parent | 2bb47821784c5ac3dc33c45624d591c7bf90deb0 (diff) | |
download | ioquake3-aero-b949e776ca74e15d78e597fbcb86630cc6c257f7.tar.gz ioquake3-aero-b949e776ca74e15d78e597fbcb86630cc6c257f7.zip |
VoIP: client can now specify targets for voice transmission.
git-svn-id: svn://svn.icculus.org/quake3/trunk@1365 edf5b092-35ff-0310-97b2-ce42778d08ea
Diffstat (limited to 'code/client/cl_parse.c')
-rw-r--r-- | code/client/cl_parse.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/code/client/cl_parse.c b/code/client/cl_parse.c index 294e46e..9e6d5f9 100644 --- a/code/client/cl_parse.c +++ b/code/client/cl_parse.c @@ -647,6 +647,8 @@ qboolean CL_ShouldIgnoreVoipSender(int sender) return qtrue; // all channels are muted with extreme prejudice. else if (clc.voipIgnore[sender]) return qtrue; // just ignoring this guy. + else if (clc.voipGain[sender] == 0.0f) + return qtrue; // too quiet to play. return qfalse; // !!! FIXME: implement per-channel muting. } @@ -758,7 +760,7 @@ void CL_ParseVoip ( msg_t *msg ) { Com_DPrintf("VoIP: playback %d bytes, %d samples, %d frames\n", written * 2, written, i); S_RawSamples(sender + 1, written, 8000, 2, 1, - (const byte *) decoded, 1.0f); // !!! FIXME: hardcoding! + (const byte *) decoded, clc.voipGain[sender]); // !!! FIXME: hardcoding! written = 0; } |