this is good enough for nosteamers. primary focus point was working on decoding the steam voice packets correctly into subframes

This commit is contained in:
2026-06-01 20:52:20 +01:00
parent 7d46e3b9eb
commit a02af1a297
2 changed files with 164 additions and 177 deletions
-2
View File
@@ -137,7 +137,6 @@ public: // IConCommandBaseAccessor
public:
CVoice();
void OnGameFrame(bool simulating);
bool OnBroadcastVoiceData(IClient *pClient, int nBytes, char *data);
void ListenSocket();
void PushPlayerVoiceData(int playerSlot, int nBytes, char *data);
@@ -174,7 +173,6 @@ private:
// Player transcode state (24000 Hz mono -> 22050 Hz mono -> CELT)
OpusDecoder *m_PlayerOpusDecoder[SM_MAXPLAYERS + 1];
int m_playerResampleAccum[SM_MAXPLAYERS + 1];
double m_AvailableTime;
double m_playerAvailableTime[SM_MAXPLAYERS + 1];