engine: client: GoldSrc voice chat support

- Added support for GoldSrc voice mode, including initialization and shutdown functions.
- Implemented data size verification for the GoldSrc voice package.
- Creation and processing of voice packets, CRC verification of data integrity.
- Added a Steam ID field to the client_static_t structure
- Automatic gain control has been introduced for voice samples.
- The voice status structure has been updated.
- Refactored voice data handling for better type consistency and maintainability.
- Fixed ISO C90 compliance issues for better portability.
- Fixed decoder index usage.
This commit is contained in:
Sergey Degtyar
2025-06-26 08:56:48 +03:00
parent f37bbec78e
commit 6bb7bcd378
5 changed files with 773 additions and 216 deletions

View File

@@ -638,6 +638,7 @@ typedef struct
// server's build number (might be zero)
int build_num;
uint8_t steamid[8];
} client_static_t;
#ifdef __cplusplus