Me having lots of fun with voice chat.

git-svn-id: https://svn.code.sf.net/p/fteqw/code/branches/wip@3656 fc73d0e0-1445-4013-8a0c-d673dee63da5
This commit is contained in:
Spoike 2010-11-15 02:40:31 +00:00
parent 2df9690627
commit da09f7ba44
32 changed files with 2521 additions and 97 deletions

View file

@ -324,13 +324,6 @@ typedef struct //merge?
} q3client_frame_t;
#endif
#define MAXCACHEDSOUNDBUFFERS 8
typedef struct {
int socket;
qboolean floodingbuffers; //not enough sound causes this. Sound is then only mixed when full.
qbyte *buffer[MAXCACHEDSOUNDBUFFERS];
} svvoicechat_t;
#define MAX_BACK_BUFFERS 16
typedef struct client_s
@ -474,7 +467,9 @@ typedef struct client_s
int lastsequence_acknoledged;
svvoicechat_t voicechat;
unsigned int voice_read;
unsigned char voice_mute[MAX_CLIENTS/8];
qboolean voice_active;
#ifdef SVCHAT
svchat_t chat;
@ -1040,6 +1035,11 @@ int SV_PMTypeForClient (client_t *cl);
void SV_UserInit (void);
qboolean SV_TogglePause (client_t *cl);
#ifdef PEXT2_VOICECHAT
void SV_VoiceInitClient(client_t *client);
void SV_VoiceSendPacket(client_t *client, sizebuf_t *buf);
#endif
void SV_ClientThink (void);
void SV_Begin_Core(client_t *split);