Gleb Mazovetskiy
f9f301b054
🚚 engine.h: Extract `Point`, `Direction`, `clamp`
...
`engine.h` is getting quite bloated. Moves this code to their own files.
5 years ago
Anders Jenbo
8a7ec56d3a
Player by reference part 2
...
This mostly change player to be by reference instead of by index.
But additionally it does stript checks for gold in the belt, move some
value types to the initialization and short circute a few functiongs.
5 years ago
Anders Jenbo
4a7ba94702
🎨 Run clang-format
5 years ago
thebigMuh
24f32a1d53
Fix sound volume/panning attenuation ( #1789 )
...
* Fixing volume adjustment and scaling
5 years ago
Gleb Mazovetskiy
559229dea1
🐞 Duplicate sounds: Fix data race
...
This fixes a data race by deleting the sound exactly when it finishes
playing.
Previously, a data race could happen in
`CleanupFinishedDuplicateSounds`, where the sound would be destroyed
while Aulib was reading from its buffer.
5 years ago
Anders Jenbo
93f9b852a2
🐛 Do not stop music when calling sound_stop()
...
Fixes #1782
5 years ago
Gleb Mazovetskiy
7bdfb0655c
🐞 Support multiple playback of the same sound
5 years ago
Vladimir Olteanu
7aad72f96d
Use automatic memory management for sound stuff ( #1771 )
5 years ago
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.
5 years ago
obligaron
a3229741d1
🖌️ Refurbish tables in source code (clang-format off)
5 years ago
Anders Jenbo
2bd13451a1
♻️ Apply point positioning to all remaning entities
5 years ago
Anders Jenbo
efbe8a8338
♻️ add possition points to monsters
5 years ago
Anders Jenbo
e4cfad3196
♻️ Use points instead of individual fileds for player structure
5 years ago
Anders Jenbo
a32ac83090
🎨 cleanup trivial trype comparisons
5 years ago
Gleb Mazovetskiy
a043aa4dd8
GetSFXLength: Respect streaming flag ( #1640 )
5 years ago
Anders Jenbo
593c6a6f17
🎨 Drop unused param and rename random_ to GenerateRnd
5 years ago
qndel
ec74917cb4
class sounds cleanup
5 years ago
Anders Jenbo
bb4e1960e7
🎨 modernize-use-nullptr
5 years ago
Gleb Mazovetskiy
95946e3a7c
🧹 Cleanup unused variables ( #1584 )
...
Fixes `unused-variable` and `unused-but-set-variable` compiler warnings.
5 years ago
Anders Jenbo
997c1dba55
🚚 Split up all.h in to proper header relations
5 years ago
Anders Jenbo
f450d6a125
🚚 Move defines to there proper files
5 years ago
Juliano Leal Goncalves
28ad9d43c5
🎨 Rename 'plr_class' enum to 'HeroClass'
...
Members were renamed as well for readability.
5 years ago
Juliano Leal Goncalves
7d95bfed39
♻️ Convert 'plr_class' to a scoped enumeration
5 years ago
Anders Jenbo
20186e0370
🎨 Replace TRUE/FALSE with true/false
...
fix
Fix
fix
5 years ago
Anders Jenbo
93d42b62b8
♻️ Change BOOL to bool
5 years ago
Anders Jenbo
af96de4038
♻️ Move a large part of enums to there respective headers
5 years ago
Anders Jenbo
bfb3c11c2b
🎨 Change namespace to devilution
5 years ago
Anders Jenbo
630e507f63
🚚 Apply namespace
5 years ago
Anders Jenbo
cee6029da0
🔥 Rely less on storm.h
5 years ago
Gleb Mazovetskiy
88a68f503a
Disable streaming music and sound for 3DS / Switch ( #1264 )
...
Works around https://github.com/devkitPro/SDL/issues/72 at the cost of
~50 MiB extra RAM usage.
5 years ago
Anders Jenbo
8f09cc3034
[diablo] 🐛 Correct spelling of Sorcerer
...
Fixes #1074
5 years ago
Gleb Mazovetskiy
0c2284a091
Respect sfx_STREAM in PlaySFX
...
Changes audio playback of sounds with the `sfx_STREAM` flag, such as towner lines, to stream.
5 years ago
Juliano Goncalves
379b7c92be
✨ Allow playing specific sounds with 'PlaySfx'
5 years ago
Anders Jenbo
44a4224aad
🐛 Fix audio enum order
5 years ago
qndel
ab9911064f
unify checks for single and multiplayer
5 years ago
Anders Jenbo
88a715cdcc
Clean up narator sound logic
...
Also this provides a helper function for calculating the length of a
sound
5 years ago
Anders Jenbo
6f8f4c3293
Unify another chunk of simple Hellfire code paths
5 years ago
Anders Jenbo
e609e170d0
Merge a large chunk of Hellfire the code paths
5 years ago
Anders Jenbo
95173539ce
Reorder effects.cpp
5 years ago
Gleb Mazovetskiy
ec329e645c
Fix all "no-write-strings" warnings
5 years ago
Anders Jenbo
7ffb595370
Load rouge and sorceror sounds in multiplayer
5 years ago
Anders Jenbo
e073422ce7
Unify executable for Spawn and Retail
...
The game will now autodetect if it should run in shareware mode or full
retail based on the found mpq file. Additionally it can beforced in the
shareware mode with --spawn even if the retail data is found.
This simplifies a lot of the spagetty code and lets us better refactor,
also worth noteing is that we won't have to setup a secound set of build
tests.
5 years ago
Anders Jenbo
c009b72d9d
Unify SFX enums
5 years ago
BDC
741cdb2494
Fix memory leak with audio stream not been released
...
SFileChunk was not been release.
6 years ago
BDC
74938fdacd
Fix memory leak with audio stream not been released
...
SFileChunk was not been release.
6 years ago
Anders Jenbo
edcd92e012
Misc clean ups that missed last round
6 years ago
Anders Jenbo
cc280eeba3
Enable asserts in files that where cleaned
6 years ago
Anders Jenbo
c9db23de5b
Correct sfx_* names, can be seen in assert strings
6 years ago
Anders Jenbo
7db4ed749a
Apply more enums, defines and types
6 years ago
Anders Jenbo
c384711a5f
Backport cleanups from hellfire branch
6 years ago