Commit graph

5 commits

Author SHA1 Message Date
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