mirror of
https://github.com/rehlds/rehlds.git
synced 2025-01-03 18:45:46 +03:00
Merge pull request #105 from s1lentq/master
ReHLDS API: Added function SetLastVoiceTime for api
This commit is contained in:
commit
df21c21ce5
@ -68,6 +68,7 @@ public:
|
|||||||
virtual void SetConnected(bool connected) = 0;
|
virtual void SetConnected(bool connected) = 0;
|
||||||
|
|
||||||
virtual uint32 GetVoiceStreams(int id) = 0;
|
virtual uint32 GetVoiceStreams(int id) = 0;
|
||||||
|
virtual void SetLastVoiceTime(double time) = 0;
|
||||||
virtual double GetLastVoiceTime() = 0;
|
virtual double GetLastVoiceTime() = 0;
|
||||||
virtual bool GetLoopback() = 0;
|
virtual bool GetLoopback() = 0;
|
||||||
|
|
||||||
|
@ -74,6 +74,10 @@ uint32 EXT_FUNC CGameClient::GetVoiceStreams(int id) {
|
|||||||
return m_pClient->m_VoiceStreams[id >> 5];
|
return m_pClient->m_VoiceStreams[id >> 5];
|
||||||
}
|
}
|
||||||
|
|
||||||
|
void EXT_FUNC CGameClient::SetLastVoiceTime(double time) {
|
||||||
|
m_pClient->m_lastvoicetime = time;
|
||||||
|
}
|
||||||
|
|
||||||
double EXT_FUNC CGameClient::GetLastVoiceTime() {
|
double EXT_FUNC CGameClient::GetLastVoiceTime() {
|
||||||
return m_pClient->m_lastvoicetime;
|
return m_pClient->m_lastvoicetime;
|
||||||
}
|
}
|
||||||
|
@ -77,6 +77,7 @@ public:
|
|||||||
virtual void SetConnected(bool connected);
|
virtual void SetConnected(bool connected);
|
||||||
|
|
||||||
virtual uint32 GetVoiceStreams(int id);
|
virtual uint32 GetVoiceStreams(int id);
|
||||||
|
virtual void SetLastVoiceTime(double time);
|
||||||
virtual double GetLastVoiceTime();
|
virtual double GetLastVoiceTime();
|
||||||
virtual bool GetLoopback();
|
virtual bool GetLoopback();
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user