Alibek Omarov
356f78ee81
engine: platform: sdl: fix possible buffer overrun in SDL port audio code
2 years ago
Alibek Omarov
7dcddc559c
engine: platform: sdl: set PulseAudio role only on POSIX systems
2 years ago
Alibek Omarov
323626c308
engine: platform: sdl: try to avoid random crash in SDL pulse audio driver
2 years ago
Alibek Omarov
5bae2f06ad
engine: platform: sdl: do not lock audio device, for some reason it sometimes causes problems although it shouldn't
2 years ago
Alibek Omarov
3a8c58d192
engine: platform: sdl: fix parentheses around IsAudioError macro
2 years ago
Alibek Omarov
0d7a2e7bad
engine: platform: change capture API to allow locking/unlocking buffer to prevent race condition, use single function for pause
2 years ago
SNMetamorph
9f9141823a
engine: added audio backend print to s_info command
2 years ago
Alibek Omarov
22ff45f5d0
engine: platform: add audio capture shutdown functions
2 years ago
SNMetamorph
9bcd36cc24
engine: voice code minor refactoring
2 years ago
Velaron
2b9e050f57
engine: voice support
2 years ago
Alibek Omarov
2edc8b16ae
engine: platform: fix sdl audio
4 years ago
Alibek Omarov
a93d9ac71c
engine: platform: simplify sound code
...
Remove SNDDMA_GetSoundtime, because it was mostly copypasted from one
platform code to another.
SNDDMA_GetDMAPos gets removed too, as we have dma.samplepos for that.
4 years ago
Alibek Omarov
c68af64fe5
engine: platform: fix access to uninitialized audio subsystem when -nosound was passed
4 years ago
Alibek Omarov
3d9a4560d5
client: make sound cvars statically allocated, to avoid access to invalid pointers in the future
4 years ago
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:]]\+$//' {} \+
```
4 years ago
Alibek Omarov
9421457b3a
engine: big refactoring commit, instead of using platform-specific platform-specific macros, use appropriate macros set by public/build.h
5 years ago
Alibek Omarov
9d826016b0
engine: finish sdl1.2 port
5 years ago
Alibek Omarov
4d5e7c0557
platform: minify changes, use SDL_VERSION_ATLEAST macro(left unfinished)
5 years ago
Alibek Omarov
8dafbaeda2
engine: platform: sdl: dirty wip sdl1.2 port
5 years ago
Alibek Omarov
b2895770b8
platform: remove unneeded argument from SNDDMA_Init
5 years ago
Alibek Omarov
7205f2d4fa
sound: sdl: use SDL_setenv for crossplatform
6 years ago
Alibek Omarov
9935e2c8d3
sound: sdl: set pulseaudio environment variables regardless of target OS, because PA is crossplatform
6 years ago
Alibek Omarov
80fc7209ed
sound: move related function declarations to platform header. Remove unused.
6 years ago
Alibek Omarov
de838ec5e8
rename backend files for great justice and consistency
6 years ago
Alibek Omarov
5744aa8d9e
Add SDL sound backend
7 years ago