blob: c0a48f70f5f82e2c58ee522fa3509c1158984af7 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
|
//========= Copyright Valve Corporation, All rights reserved. ============//
//
// Purpose: This module defines the IVoiceServer interface, which is used by
// game code to control which clients are listening to which other
// clients' voice streams.
//
// $NoKeywords: $
//=============================================================================//
#ifndef IVOICESERVER_H
#define IVOICESERVER_H
#include "interface.h"
#define INTERFACEVERSION_VOICESERVER "VoiceServer002"
abstract_class IVoiceServer
{
public:
virtual ~IVoiceServer() {}
// Use these to setup who can hear whose voice.
// Pass in client indices (which are their ent indices - 1).
virtual bool GetClientListening(int iReceiver, int iSender) = 0;
virtual bool SetClientListening(int iReceiver, int iSender, bool bListen) = 0;
virtual bool SetClientProximity(int iReceiver, int iSender, bool bUseProximity) = 0;
};
#endif
|