summaryrefslogtreecommitdiff
path: root/public/ivoiceserver.h
diff options
context:
space:
mode:
authorFluorescentCIAAfricanAmerican <[email protected]>2020-04-22 12:56:21 -0400
committerFluorescentCIAAfricanAmerican <[email protected]>2020-04-22 12:56:21 -0400
commit3bf9df6b2785fa6d951086978a3e66f49427166a (patch)
tree2c0f1f0c63c4832882bc93814ebd2c2b1c6224e5 /public/ivoiceserver.h
downloadarchived-source-engine-2018-hl2-src-master.tar.xz
archived-source-engine-2018-hl2-src-master.zip
Diffstat (limited to 'public/ivoiceserver.h')
-rw-r--r--public/ivoiceserver.h34
1 files changed, 34 insertions, 0 deletions
diff --git a/public/ivoiceserver.h b/public/ivoiceserver.h
new file mode 100644
index 0000000..c0a48f7
--- /dev/null
+++ b/public/ivoiceserver.h
@@ -0,0 +1,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
+