1
0
mirror of https://github.com/alliedmodders/hl2sdk.git synced 2024-12-23 01:59:43 +08:00
hl2sdk/public/ivoiceserver.h

34 lines
873 B
C

//========= Copyright © 1996-2005, 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 "VoiceServer001"
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;
};
#endif