Initial patch for in-game VoIP support!
This commit is contained in:
parent
0ee3960225
commit
12326a9eac
19 changed files with 1185 additions and 127 deletions
|
@ -33,6 +33,18 @@ Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
|
|||
|
||||
#define MAX_ENT_CLUSTERS 16
|
||||
|
||||
#if USE_VOIP
|
||||
typedef struct voipServerPacket_s
|
||||
{
|
||||
int generation;
|
||||
int sequence;
|
||||
int frames;
|
||||
int len;
|
||||
int sender;
|
||||
byte data[1024];
|
||||
} voipServerPacket_t;
|
||||
#endif
|
||||
|
||||
typedef struct svEntity_s {
|
||||
struct worldSector_s *worldSector;
|
||||
struct svEntity_s *nextEntityInWorldSector;
|
||||
|
@ -167,6 +179,14 @@ typedef struct client_s {
|
|||
netchan_buffer_t *netchan_start_queue;
|
||||
netchan_buffer_t **netchan_end_queue;
|
||||
|
||||
#if USE_VOIP
|
||||
qboolean hasVoip;
|
||||
qboolean muteAllVoip;
|
||||
qboolean ignoreVoipFromClient[MAX_CLIENTS];
|
||||
voipServerPacket_t voipPacket[64]; // !!! FIXME: WAY too much memory!
|
||||
int queuedVoipPackets;
|
||||
#endif
|
||||
|
||||
int oldServerTime;
|
||||
qboolean csUpdated[MAX_CONFIGSTRINGS+1];
|
||||
} client_t;
|
||||
|
@ -264,6 +284,11 @@ extern cvar_t *sv_strictAuth;
|
|||
extern serverBan_t serverBans[SERVER_MAXBANS];
|
||||
extern int serverBansCount;
|
||||
|
||||
#if USE_VOIP
|
||||
extern cvar_t *sv_voip;
|
||||
#endif
|
||||
|
||||
|
||||
//===========================================================
|
||||
|
||||
//
|
||||
|
@ -320,6 +345,11 @@ void SV_ClientThink (client_t *cl, usercmd_t *cmd);
|
|||
|
||||
void SV_WriteDownloadToClient( client_t *cl , msg_t *msg );
|
||||
|
||||
#if USE_VOIP
|
||||
void SV_WriteVoipToClient( client_t *cl, msg_t *msg );
|
||||
#endif
|
||||
|
||||
|
||||
//
|
||||
// sv_ccmds.c
|
||||
//
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue