IVoiceContext

C++
struct IVoiceContext {
};
File

INetwork.h

Description

An IVoiceContext provides interface for network voice data manipulation. UNIQUE_IFACE Commented out until de-virtualiser can cope with #ifdef

IVoiceContext::AddRef Method
C++
virtual void AddRef() = 0;
IVoiceContext::CreateVoiceGroup Method
C++
virtual IVoiceGroup* CreateVoiceGroup() = 0;
Description

Creates new voice group.

IVoiceContext::GetDataFor Method
C++
virtual bool GetDataFor(EntityId id, uint32 numSamples, int16 * samples) = 0;
Description

Retrieves voice packet from network system.

Notes

Called directly from the network thread to reduce voice transmission latency.

IVoiceContext::GetMemoryStatistics Method
C++
virtual void GetMemoryStatistics(ICrySizer* pSizer) = 0;
IVoiceContext::InvalidateRoutingTable Method
C++
virtual void InvalidateRoutingTable() = 0;
Description

Forces recreation of routing table (when players change voice group, for instance).

IVoiceContext::IsEnabled Method
C++
virtual bool IsEnabled() = 0;
IVoiceContext::IsMuted Method
C++
virtual bool IsMuted(EntityId requestor, EntityId id) = 0;
IVoiceContext::Mute Method
C++
virtual void Mute(EntityId requestor, EntityId id, bool mute) = 0;
IVoiceContext::PauseDecodingFor Method
C++
virtual void PauseDecodingFor(EntityId id, bool pause) = 0;
IVoiceContext::Release Method
C++
virtual void Release() = 0;
IVoiceContext::SetVoiceDataReader Method
C++
virtual void SetVoiceDataReader(EntityId id, IVoiceDataReader*) = 0;
Description

Sets voice data reader for entity, voice context requests it when it needs new data.