1
0
Fork 0
mirror of https://codeberg.org/demostf/parser.git synced 2026-06-04 02:24:12 +02:00
Commit graph

177 commits

Author SHA1 Message Date
992941b5e4 fmt 2020-11-30 20:31:30 +01:00
Lasse Dalegaard
63b2f2e599 Rename VoiceInit extra_data to sampling_rate
When quality is 255, an extra field is included in the VoiceInit
message. This field is the sampling rate for the voice codec selected.
This commit simply renames that field from `extra_data` as it is
currently known.

Interestingly, this field is present, but doesn't match when CELT HQ is
used. If `sv_voicecodec = vaudio_celt_high` on the server, the sampling
rate is still specified as 22050 Hz(as for CELT non-HQ) rather than the
expected 44100 Hz.  The client code will instead look for `vaudio_celt`
and `vaudio_celt_high` as codec name, and use these to to index a lookup
table that specifies the correct sampling rate and frame size. For
`vaudio_celt` 22050 Hz with 512 samples per frame is used, while
`vaudio_celt_high` uses 44100 Hz with 1024 samples per frame.
2020-03-27 13:07:22 +01:00
8f2c732945 fixes 2020-03-05 23:34:05 +01:00
c0117de169 adjust to bitbuffer rename 2020-02-13 00:02:43 +01:00
90c5e6c7f9 improved handling of unicode chat messages 2020-02-09 16:40:34 +01:00
a47336f709 extract world boundaries 2020-01-31 00:49:03 +01:00
66d568a65f fix some more overflow panics 2020-01-20 21:07:32 +01:00
6599a5d6d2 handle mallformed utf8 gameevent values 2020-01-20 12:30:05 +01:00
d952c5c4bc fix parsing demos that have game events before the definitions 2020-01-20 11:47:42 +01:00
3caadadb3b harden against dos with crafted input by limiting reserved vec/map size 2020-01-19 22:13:12 +01:00
e412399309 fix panic in log_base2 in malformed demos 2020-01-19 21:15:03 +01:00
e77770c780 fix panics with misformed demos and incorrect length values 2020-01-19 20:25:13 +01:00
f5504cd682 better skips 2020-01-19 14:50:35 +01:00
b7c3baee17 update to bitstream_reader 0.7 2020-01-07 23:26:37 +01:00
c4f9b7bfb8 switch from enum-primitive-derive to num_enum 2019-12-16 14:47:18 +01:00
11c7fb507f clippy fixes 2019-12-15 14:41:45 +01:00
ca1c67af75 remove seperate userstate struct 2019-12-15 01:17:34 +01:00
4cf1e92657 optimize packet/message format a bit 2019-10-11 22:07:36 +02:00
11140b149b box the 2 biggest message variants 2019-10-11 20:12:32 +02:00
8d6ef8e2fb some error cleanup 2019-10-05 13:12:25 +02:00
68416d6025 derive FromStr 2019-10-05 12:51:56 +02:00
b761a0aa1a reduce the size of the generated code 2019-09-03 23:14:24 +02:00
4bd352feb9 pass message to analysers by ref 2019-08-29 23:28:26 +02:00
8e39a1ed50 use jemalloc 2019-08-29 22:28:38 +02:00
6636eb4a93 reuse prop vector for entities 2019-08-29 21:16:38 +02:00
33b8d76e88 use more optimized way to store things in state 2019-08-29 16:47:32 +02:00
06d53573d4 compare definitions by index 2019-08-29 16:32:15 +02:00
bf65dffb13 save sendtables by classid
since we only really need to get them by classid
2019-08-29 02:39:21 +02:00
91e5b82f2f dont save full serverclass in entity, only store classid 2019-08-29 02:38:22 +02:00
b6f7ebb15a use vec for event definitions 2019-08-28 16:00:47 +02:00
0df7d0b394 entity fixes and test 2019-08-28 12:44:33 +02:00
66668e3e61 derive Display where possible 2019-08-27 21:43:46 +02:00
a7702856d0 wrap sendprop definition in an Rc 2019-08-27 00:48:43 +02:00
e90bc53852 entity reading wip 2019-08-27 00:28:23 +02:00
4320f2941c analyser cleanup 2019-08-25 23:49:21 +02:00
faf205c9da make game event definitions sortable 2019-08-25 14:35:34 +02:00
2da874da18 from is optional for chat message 2019-08-24 02:55:15 +02:00
77180520ef some error refactoring 2019-08-23 12:32:26 +02:00
6b0442741e handle malformed utf8 in chat messages 2019-08-22 21:37:36 +02:00
a2ab109b88 fix bspdecal reading 2019-08-22 21:24:27 +02:00
1b9befd165 remove the need to clone text entries 2019-08-12 14:19:07 +02:00
65d55c9a26 minor cleanup 2019-08-12 13:44:48 +02:00
a9c76eb27c minor cleanup 2019-08-12 12:46:26 +02:00
8442c5e385 minor cleanup 2019-08-11 13:25:47 +02:00
e005f35f73 improved error handling 2019-08-10 23:01:33 +02:00
ff18680a02 sendprop decoding 2019-08-10 22:57:07 +02:00
d12cf35e47 handle malformed utf8 in names and cvars 2019-05-25 23:58:21 +02:00
e3ddd9f3e2 early sendprop cleanup 2019-04-07 19:37:51 +02:00
2602e23de8 message type testing 2019-04-07 19:13:39 +02:00
052ff398cd add basic snapshot testing 2019-03-17 19:20:50 +01:00