8 Commits
Author SHA1 Message Date
obligaron 45f8647892 Fix MSVC warnings in utils\* 2023-11-08 21:34:48 +00:00
Gleb Mazovetskiy ecdf7380a8 PushAulibDecoder: Support 8-bit samples directly
Previously, we converted 8-bit audio to 16-bit, and then to float.
Eliminates the 8->16 conversion step.

Also optimizes the 16-bit conversion a bit.
2023-08-15 17:17:33 +09:00
Gleb Mazovetskiy 5bf0b8bc96 Add more missing <cstdint> includes
https://github.com/diasurgical/devilutionX/pull/6095 only added includes
for `uint32_t`, this PR also adds the includes for the remaining
integral types.
2023-05-10 16:29:27 +01:00
ephphatha 3520dc4201 Update numeric literals to use appropriate suffix
Mainly things like .F for floats instead of doubles in float context.
2021-07-05 08:52:05 -07:00
Gleb Mazovetskiy c79ec673f4 ♻️ Implement std's Lockable for SDL mutex wrapper
Rather than rolling our own lock guard, implement the requirements for
using `std::lock_guard` et al and use that.
2021-05-17 12:00:09 +02:00
Gleb Mazovetskiy 58b805cf47 🐞 Fix data race in PushAulibDecoder
Fixes #1832
2021-05-02 14:15:35 +01:00
Gleb Mazovetskiy 46a5dc147b 🔨 Restore GCC 5 compatibility
We can support this much older compiler with just these few minor
changes.
2021-04-27 14:26:14 +02:00
Gleb Mazovetskiy acee2ef14c 🎉 Switch from SDL_mixer to SDL_audiolib
SDL_mixer can only stream a single music track
SDL_audiolib has unlimited streams.

With this change, we finally have streaming sounds (respecting
sfx_STREAM).

Audio options can now also be set via diablo.ini, which should help us
better diagnose the static noise issues.
2021-04-27 00:54:50 +01:00