8 Commits

Author SHA1 Message Date
Azamat H. Hackimov
39e128cb0f Merge pull request #582 from jengelh/master
ASAN/UBSAN fixes
2024-09-21 21:25:46 +03:00
Azamat H. Hackimov
ae8e1b4a48 Convert sndlib to use new logging facility 2024-09-10 03:00:25 +03:00
Jan Engelhardt
4ecac1570f sndlib: avoid shifting negative values
sndlib/mixer.cpp:496:61: runtime error: left shift of negative value -1
sndlib/mixer.cpp:333:74: runtime error: left shift of negative value -1
sndlib/mixer.cpp:331:115: runtime error: left shift of negative value -2

x<<y is UB for y<0 or x<0. Using a multiply side-steps this (and compilers
optimize multiplies to the same ASM anyway).
2024-09-10 01:41:54 +02:00
GravisZro
9cf9781369 Properly format/use variadic macros 2024-05-24 20:57:17 -04:00
GravisZro
5e5e0c99c3 Replace "short" with "int16_t" and fix missing headers 2024-05-23 23:49:31 -04:00
GravisZro
1618040db5 Replace "unsigned char" with "uint8_t" 2024-05-23 22:58:46 -04:00
Azamat H. Hackimov
45ac1cc78a Cleanup headers in sndlib
Moving common macros into ssl_lib.h
2024-05-22 22:03:46 +03:00
Azamat H. Hackimov
974c703906 Reordering dd_sndlib and dd_lnxsound into sndlib
Consolidate all sound related code into one module.
2024-05-22 22:03:43 +03:00