Alibek Omarov
e6a44b70e0
engine: client: always load client.dll last to crash on nullptr in mods that fetch cvar pointers early, add comment for anyone who would modify this file
2026-05-05 01:15:16 +05:00
TheEVolk
9e8d248044
engine: client: voice api
2026-04-10 14:58:46 +05:00
TheEVolk
da3960c4f0
engine: client: move bitflag definitions to sound_api
2026-04-08 14:15:16 +03:00
TheEVolk
d92b3a730c
engine: client: adapt sound api to snd globals
2026-04-08 14:02:10 +03:00
TheEVolk
4345e9e6a6
Merge remote-tracking branch 'upstream/master' into theevolk-feature-soundapi
2026-04-07 18:35:39 +03:00
Alibek Omarov
434e508186
engine: client: reserve some free space in channel_t and rawchan_t
2026-04-06 07:27:50 +05:00
Alibek Omarov
3fffe061d5
engine: client: switch to dynamically allocating vox words, freeing up 320 Kb of memory
2026-04-06 06:55:27 +05:00
Alibek Omarov
729c985eaf
engine: client: consolidate dma, s_listener and bunch of separate sound globals into one snd global struct. Replace bit fields with bit flags in preparation for SoundAPI
...
Remove s_combine_sounds, it never worked great and was disabled by default.
2026-04-06 06:00:48 +05:00
TheEVolk
2c5e2e1ded
engine: client: remove sound_t definition from sound.h
2026-04-04 18:30:14 +03:00
TheEVolk
35998bce81
engine: client: add sound api
2026-04-04 16:08:31 +03:00
Alibek Omarov
0b920be381
engine: client: delay freeing up the sound channel when it becomes inaudible
2026-04-03 00:03:52 +05:00
Alibek Omarov
07937f5f6c
engine: client: consolidate two remaining functions in s_utils.c into s_main.c
2026-02-21 03:37:36 +05:00
Alibek Omarov
abaf390dfc
engine: client: introduce a new mixer
2026-02-21 01:43:14 +05:00
Alibek Omarov
6f0fb594e7
Merge branch 'master'
2025-01-23 18:42:00 +03:00
Alibek Omarov
d29e53481d
engine: client: remove unused S_StreamAviSamples
2025-01-22 20:01:11 +03:00
Alibek Omarov
375998dffb
Cleanup xash3d_types.h from engine-specific macros and types
2025-01-22 15:10:18 +03:00
Alibek Omarov
4987080e1e
engine: client: remove unused S_RawSamples wrapper function
2024-12-13 03:04:32 +03:00
Alibek Omarov
1d78e400ff
engine: sound: increase MAX_RAW_SAMPLES to 16384 to fit an audio track coming from the movies
2024-12-13 03:04:32 +03:00
Alibek Omarov
eefb823ee2
engine: client: remove legacy movie audio track streaming functions
2024-12-13 03:04:32 +03:00
Alibek Omarov
a3c33e0fa9
engine: client: sound: make S_RawSampleStereo public to other parts of engine
2024-12-13 03:04:32 +03:00
Alibek Omarov
e9ee4beb9f
engine: client: fix rawchan_t definition so it has true standard flexible array member
2024-08-10 13:46:00 +03:00
Alibek Omarov
b0d12f8bf9
engine: client: fix build
...
Forgot to stage these changes two commits ago =/
2024-06-18 00:01:54 +03:00
Alibek Omarov
75a315ecf0
engine: client: add optional (compile time for now) setting to reconfigure engine to use 48kHz sounds
2024-05-06 15:10:34 +03:00
Alibek Omarov
5120657386
engine: fix possible buffer overflow in S_StreamGetCurrentState
2024-05-06 06:53:22 +03:00
Alibek Omarov
13274655d4
engine: client: sound: slight refactoring, removed unused s_listener.velocity
2024-05-06 01:30:06 +03:00
Alibek Omarov
7584bbe47e
engine: client: fix sound mute when losing focus
2024-03-03 19:00:50 +03:00
Alibek Omarov
628ac376ed
engine: client: s_dsp: refactoring from hldsp
2024-01-13 05:29:43 +03:00
Alibek Omarov
51d4716bcb
engine: client: rewrite trimming silence at the beginning and ending of the VOX word from scratch
2024-01-12 03:27:05 +03:00
Alibek Omarov
05579927a5
engine: client: sound: move dsp cvars to static allocation
2023-05-27 21:52:58 +03:00
Alibek Omarov
27d9fc0afe
engine: client: sound: remove unused functions
2023-04-03 03:55:57 +03:00
Alibek Omarov
8293bc91d4
engine: client: sound: fix PickDynamicChannel to correctly find channel with minimum time left
2023-02-18 03:37:20 +03:00
Alibek Omarov
82ab06efdd
engine: client: voice: new version, move to Opus Custom codec
...
* Despite Opus Custom have strict requirements, it's more barebones, allowing us to use maximum
frame size and custom sample rate, without resampling
* Encode each frame size to network buffer, allowing smooth voice chat even in 10 FPS
* Fix possible buffer overruns, underruns and races with platform side
* Revise all usages of offset variables, samples vs bytes
2022-08-31 06:44:45 +03:00
SNMetamorph
9f9141823a
engine: added audio backend print to s_info command
2022-08-20 15:36:02 +03:00
Velaron
2b9e050f57
engine: voice support
2022-08-18 04:46:11 +03:00
Alibek Omarov
6571c78ed4
engine: client: hide late precache warning under s_warn_late_precache cvar
...
This warn is valid mostly for multiplayer games.
In singleplayer games, this is a false-positive as sentences are hot loaded
2021-10-31 21:06:54 +06:00
Alibek Omarov
9313f7e80e
engine: replace pool pointer by pool handle
2021-06-07 02:33:15 +03:00
Alibek Omarov
60c10333aa
engine: client: fix sound not spatialized correctly, remove unused field from rawchan
2021-06-07 02:21:46 +03:00
Alibek Omarov
3d9a4560d5
client: make sound cvars statically allocated, to avoid access to invalid pointers in the future
2021-03-09 23:59:29 +03:00
Gleb Mazovetskiy
5e0a0765ce
Trim all trailing whitespace
...
The `.editorconfig` file in this repo is configured to trim all trailing
whitespace regardless of whether the line is modified.
Trims all trailing whitespace in the repository to make the codebase easier
to work with in editors that respect `.editorconfig`.
`git blame` becomes less useful on these lines but it already isn't very useful.
Commands:
```
find . -type f -name '*.h' -exec sed --in-place 's/[[:space:]]\+$//' {} \+
find . -type f -name '*.c' -exec sed --in-place 's/[[:space:]]\+$//' {} \+
```
2021-01-04 20:55:10 +03:00
Andrey Akhmichin
e3b547c8a9
public: rename mathlib to xash3d_mathlib.
2020-02-12 14:32:26 +05:00
Alibek Omarov
40211efa9a
engine: sound: remove s_cull and s_phs, because they never worked. It's better to write our own occluder in future or use any opensource library
2019-07-09 13:17:10 +03:00
Alibek Omarov
3fef353291
android: initial port
2019-05-02 18:07:03 +03:00
Alibek Omarov
80fc7209ed
sound: move related function declarations to platform header. Remove unused.
2019-01-07 04:07:06 +03:00
Alibek Omarov
a03aa3ddb3
Merge 4281 update
2018-10-28 00:39:29 +03:00
Alibek Omarov
aae3510763
Apply 4281 update
2018-10-27 23:32:09 +03:00
Alibek Omarov
f4567b2c9d
sound: make snd_mute_losefocus accessible outside
2018-10-22 00:36:38 +03:00
mittorn
491188a0f3
Merge branch 'original'
2018-10-04 14:27:14 +07:00
mittorn
5c738b3402
Apply 4253 update
2018-10-04 13:08:48 +07:00
Alibek Omarov
5744aa8d9e
Add SDL sound backend
2018-04-17 03:44:53 +03:00
Alibek Omarov
8d6e3b7f79
Pure engine source code(LF line endings, UTF8 encoded)
2018-04-13 19:23:45 +03:00