Anders Jenbo
99181fd709
Move more files to the engine folder
4 years ago
Anders Jenbo
a56452eec3
Validate player sync
4 years ago
staphen
a7e2abeb72
Restore original Warrior death sound
5 years ago
Anders Jenbo
7cb73a6717
Minimize impact of NOSOUND
5 years ago
Anders Jenbo
77b72da276
♻️ Use monster by reference when possible
5 years ago
Anders Jenbo
352a0ca510
Place local symbols in an anonymous namespace
5 years ago
Anders Jenbo
ecea12fc15
Clang-tidy: ParameterCase
5 years ago
ephphatha
f4f6a8a51e
Refactor PlaySfxLoc to take a Point instead of x/y params
...
Because of the heavy usage of this function in objects.cpp and the mixed use of aliases and direct references to the active object in Operate*Door functions I've done some refactoring of those areas beyond what is strictly necessary. Hopefully this makes sense and is reasonable to include in this change.
5 years ago
ephphatha
15c285c879
Refactor calc_snd_position to take a Point instead of x/y params
...
Appears this function is only called internally despite being in the effects header.
5 years ago
Juliano Leal Goncalves
07e6a98fc4
✏️ Fix typos and spelling mistakes on 'HeroSpeech' members
5 years ago
Juliano Leal Goncalves
15c46b9eb0
💬 Rename HeroSpeech members to improve discoverability
5 years ago
Juliano Leal Goncalves
8c620ce29e
♻️ Extract 'HeroSpeech' enum class for hero sounds instead of using raw `int`s
5 years ago
Gleb Mazovetskiy
6913ec4623
Fix missing <memory> includes
5 years ago
Vladimir Olteanu
7aad72f96d
Use automatic memory management for sound stuff ( #1771 )
5 years ago
Gleb Mazovetskiy
57172e48ed
🔨 ⚙️ CMake: Add NOSOUND option
...
This option completely disables all audio handling, including audio
loading code and dependencies.
Dialog text length is estimated to be somewhere between
Cain and Griswold speed.
5 years ago
Jmgr
c33182d6de
Modernize deprecated headers
5 years ago
Anders Jenbo
7912e510f0
🎨 Clean up overuse of SDL types
5 years ago
qndel
ec74917cb4
class sounds cleanup
5 years ago
Anders Jenbo
5fdb9ce459
🎨 Format code
5 years ago
Anders Jenbo
819fd40376
🎨 Consistent enum value style ( #1458 )
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
433edc63ea
♻️ Consistently use pragma once to guard the headers
5 years ago
Anders Jenbo
bfb3c11c2b
🎨 Change namespace to devilution
5 years ago
Anders Jenbo
630e507f63
🚚 Apply namespace
5 years ago
Anders Jenbo
6f1498d315
🚚 Move structures to there respective headers
5 years ago
Juliano Goncalves
379b7c92be
✨ Allow playing specific sounds with 'PlaySfx'
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
f884d8b06a
Fix more compiler warnings
5 years ago
Anders Jenbo
95173539ce
Reorder effects.cpp
5 years ago
Gleb Mazovetskiy
ec329e645c
Fix all "no-write-strings" warnings
5 years ago
Joel Falcou
c4223d4c29
Per file basis use of extern C
6 years ago
Joel Falcou
64d26a7934
Sanitize use of namespace
...
Wrap individual headers in dvl namespace to prevent
including standard header in another namespace.
6 years ago
galaxyhaxz
f89204e7dd
Fix function/var names (effects/sound)
6 years ago
Anders Jenbo
3c276a3cd3
Add documentation
...
- Add file documentation to about 1/4 of the files in Source
- Copy over a lot of the documentation from the sanctuary/notes repo
- Standardise all the existing documentation
- Create a configuration for Doxygen
- Add more documentation (engine.cpp is now fully documented)
6 years ago
Anders Jenbo
40cea40aa4
Remove windows call types collisions
6 years ago
Robin Eklind
fab7f1b5fa
effects: rename monster_action_sounds to MonstSndChar
...
Rationale described in f609ea371d :
as included below:
Note, the PSX sym file does not seem to include the
original name for monster_action_sounds. However, it
does include the names for very similar global
variables used for players rather than monsters, so
from these we may infer a similar name for
monster_action_sounds.
In particular, ArmourChar, WepChar and CharChar are
used for player graphics. So, following the same naming
convention we arrive at MonstSndChar.
7 years ago
Anders Jenbo
dc4f0572f6
Remove unused variables
7 years ago
Anders Jenbo
32a51d17ca
Align function signatures with PSX symbols
...
Using
https://github.com/diasurgical/scalpel/tree/master/psx/_dump_/3/_dump_c_src_/diabpsx/source
as a reference
7 years ago
Anders Jenbo
26d7327b1f
Cleanup ( #1200 )
...
* Clean up effects.cpp
* Clean up monster.cpp
* Clean up codec.cpp
7 years ago
galaxyhaxz
7fcbc7319c
Fix merged function `sound_update`
7 years ago
galaxyhaxz
4e01e03711
Cleanup default calling conventions
7 years ago
Max Desiatov
269aa345bd
Fix downstream 64-bit builds
7 years ago
Anders Jenbo
1fd31b7df5
Fix menu audio
...
Ui code is moved to the correct file so that it is initialized after the
audio. This also rebases effects.cpp on the upstream as this fixes some
issues we where having. WinMain has also been rebased.
7 years ago
Anders Jenbo
cfbe27f3b8
Clean up ( #568 )
...
* Clean up mana checks
* Don't expose static globals
7 years ago
Anders Jenbo
77849aea72
Remove unused init ( #533 )
7 years ago
Anders Jenbo
b5f69dccdc
C compatability from d-p ( #519 )
7 years ago
Anders Jenbo
87ef2f91e7
Format mostly cleaned files
8 years ago
Anders Jenbo
226fbc68b0
effects_cleanup_sfx & stream_update ( #375 )
...
* effects_cleanup_sfx & stream_update
* effects_play_sound
* effect_is_playing, PlaySFX, PlaySfxLoc & effects_play_sound
8 years ago
Anders Jenbo
f269f4561b
PlaySFX_priv, stream_play ( #371 )
...
* PlaySFX_priv, stream_play
* Fix build warnings in player.cpp
* Clean up FreeMonsterSnd
* Added more enums and defines for sound and effects.
8 years ago