aboutsummaryrefslogtreecommitdiff
path: root/mp/src/public/ivoiceserver.h
diff options
context:
space:
mode:
authorJoe Ludwig <[email protected]>2013-06-26 15:22:04 -0700
committerJoe Ludwig <[email protected]>2013-06-26 15:22:04 -0700
commit39ed87570bdb2f86969d4be821c94b722dc71179 (patch)
treeabc53757f75f40c80278e87650ea92808274aa59 /mp/src/public/ivoiceserver.h
downloadsource-sdk-2013-39ed87570bdb2f86969d4be821c94b722dc71179.tar.xz
source-sdk-2013-39ed87570bdb2f86969d4be821c94b722dc71179.zip
First version of the SOurce SDK 2013
Diffstat (limited to 'mp/src/public/ivoiceserver.h')
-rw-r--r--mp/src/public/ivoiceserver.h34
1 files changed, 34 insertions, 0 deletions
diff --git a/mp/src/public/ivoiceserver.h b/mp/src/public/ivoiceserver.h
new file mode 100644
index 00000000..e0c6e32a
--- /dev/null
+++ b/mp/src/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
+