- SPIRIT IP-MR voice codec (Engine/Source/ComSat/SPIRIT): all ~130 functions decompiled from 12340 (Intel C++ code, ported as plain C; rsqrtss sites use _mm_rsqrt_ss). docs/0x0089F580.md. - ComSatSoundCODEC state/table buffers sized from sizeof (x64 state is larger than the Win32 13504 bytes). - Blizzard::Using::Use and the per-module using statics. - ComSatClient_Init, ComSatThread::Init, ComSatClientCallback. - SteelSeries WowMouse / HidManagerImpl (Win32 + Win64), docs/0x008C3E40.md. Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
33 lines
1.0 KiB
C++
33 lines
1.0 KiB
C++
#ifndef ENGINE_SOURCE_COMSAT_COMSATSPIRIT_H
|
|
#define ENGINE_SOURCE_COMSAT_COMSATSPIRIT_H
|
|
|
|
#include <cstddef>
|
|
#include <cstdint>
|
|
|
|
struct SPIRIT_IPMR_PARAMS {
|
|
/* 0000 */ int32_t unk_0000;
|
|
/* 0004 */ int16_t unk_0004;
|
|
/* 0006 */ int16_t unk_0006;
|
|
};
|
|
|
|
struct SPIRIT_IPMR_STREAM {
|
|
/* 0000 */ const uint8_t* m_data;
|
|
/* 0004 */ uint32_t m_bits;
|
|
/* 0008 */ uint32_t m_size;
|
|
};
|
|
|
|
struct SPIRIT_IPMR_INFO {
|
|
/* 0000 */ int16_t unk_0000;
|
|
/* 0002 */ int16_t unk_0002[7];
|
|
/* 0010 */ int16_t unk_0010[4];
|
|
/* 0018 */ int16_t unk_0018;
|
|
/* 001A */ uint8_t unk_001A[2];
|
|
};
|
|
|
|
extern "C" int32_t SPIRIT_IP_MR_V3_1_GenerateTables(void* tables);
|
|
extern "C" int32_t SPIRIT_IP_MR_V3_1_Init(void* state, const void* tables);
|
|
extern "C" int32_t SPIRIT_IP_MR_V3_1_Encode(void* state, const uint8_t* pcm, SPIRIT_IPMR_PARAMS* params, SPIRIT_IPMR_STREAM* stream, SPIRIT_IPMR_INFO* info);
|
|
extern "C" int32_t SPIRIT_IP_MR_V3_1_Decode(void* state, uint8_t* pcm, SPIRIT_IPMR_PARAMS* params, SPIRIT_IPMR_STREAM* stream, int32_t lost);
|
|
|
|
#endif
|