Commit Graph

30 Commits

Author SHA1 Message Date
Orgad Shaneh
9dab832214 NEVERHOOD: Use nullptr
Using clang-tidy modernize-use-nullptr
2021-11-14 15:51:59 +02:00
Torbjörn Andersson
912f9b7cef NEVERHOOD: Handle sound 3 when deleting a sound group (bug #12930)
It's consistent with how sounds 1 and 2 are handled, and seems to fix
bug #12930, where the game can crash on exit otherwise.
2021-09-30 01:00:13 +03:00
Ori Avtalion
21753098e1 NEVERHOOD: Reduce audio header dependencies 2016-05-21 13:44:27 +03:00
Filippos Karapetis
e0c281b9b2 NEVERHOOD: Remove trailing whitespace 2014-10-28 16:18:11 +02:00
Johannes Schickel
6563171e7b NEVERHOOD: Make GPL headers consisten in themselves. 2014-02-18 02:39:36 +01:00
johndoe123
be55f3277c NEVERHOOD: Fix for bug #6493: "NEVERHOOD: Many sounds playback as loud static (Wii)" 2014-01-14 19:53:33 +01:00
johndoe123
592526dc5d NEVERHOOD: Fix "Klaymen! Up here!" in module 1100, scene 2 2014-01-12 00:33:42 +01:00
johndoe123
6cfa27c2d5 NEVERHOOD: Fix bug #6478 "NEVERHOOD: No footstep sounds" 2014-01-06 16:11:56 +01:00
Torbjörn Andersson
ba3172b55f NEVERHOOD: Fix crash when playing uncompressed sounds
This happened to me when (or shortly afterwards; I'm not quite sure)
lighting the fuse on the TNT dummy.
2013-12-28 14:21:48 +01:00
Filippos Karapetis
4ffbae3815 NEVERHOOD: Fix looping sounds (bug #6473)
Based on salty-horse's patch - thanks!
2013-12-28 13:30:33 +02:00
Filippos Karapetis
b94165abe3 NEVERHOOD: Fix uninitialized members of the AudioResourceManMusicItem class - CID 1022298 2013-09-27 01:38:15 +03:00
Filippos Karapetis
f05e43fae6 NEVERHOOD: Fix uninitialized members of the SoundMan class - CID 1022297 2013-09-27 01:38:14 +03:00
Filippos Karapetis
9396958536 NEVERHOOD: Add a patch system for broken resources in Russian versions
Some translated resources in Russian versions have incorrect unpacked
resource sizes. The original didn't perform checks for these, but we
do, thus we'll need to patch the unpacked resource sizes for each case
2013-09-26 10:54:30 +03:00
Filippos Karapetis
c1226b7d4a NEVERHOOD: Split the code that stops all music and sound effects 2013-09-17 03:27:11 +03:00
Sven Hesse
989ea7cb56 JANITORIAL: Remove trailing whitespace 2013-07-14 19:01:47 +02:00
Filippos Karapetis
323fe8c45b NEVERHOOD: Stop all sounds before restoring / restarting
This fixes the static heard when loading a saved game to a scene with
music, when the current scene also has music
2013-06-12 11:35:47 +03:00
johndoe123
32c21754e2 NEVERHOOD: Fix member var initializations 2013-05-08 21:02:00 +02:00
johndoe123
70fdfd9d57 NEVERHOOD: Delete all sound/music items on exit
- Minor cleanup
2013-05-08 20:47:43 +02:00
johndoe123
5ff11f0041 NEVERHOOD: Rework the sound system
- Move code from the manager classes to the sound/music classes
2013-05-08 20:47:41 +02:00
johndoe123
e43184f4f2 NEVERHOOD: Remove obsolete TODOs 2013-05-08 20:47:40 +02:00
johndoe123
57497817e1 NEVERHOOD: Add enum for the resource types 2013-05-08 20:47:40 +02:00
johndoe123
b2934eb166 NEVERHOOD: Fix Klaymen "grow" animation after drinking the potion
- Remove static sprite 0x50C027A8 Scene2803/Scene2803Small because the resource doesn't exist!
- Remove some old comments
- Fix resource extData handling which fixes some crashes
- Enable reusing deleted sound/music slots in SoundMan (was disabled for debugging)
2013-05-08 20:47:38 +02:00
johndoe123
cc015e3d24 NEVERHOOD: Simplify resource loading
- Renamne and clean up
2013-05-08 20:47:38 +02:00
johndoe123
1904e944c5 NEVERHOOD: Add initCubeSymbolsPuzzle
- Add microtiles to the screen update to eliminate overdraw
  (microtiles code taken from the Toltecs engine)
- Fix sprite dimensions in AsScene1402PuzzleBox which caused a crash
- Fix screen shaking in Scene1402
  (the puzzle box and bridge parts now shake along :)
- Use addSoundItem/addMusicItem in the SoundMan instead of
  directly using push_back on the resp. arrays
- Remove old code and comments
2013-05-08 20:47:37 +02:00
johndoe123
7b0b3000a7 NEVERHOOD: Rename stuff in Module1200
- Remove unused countdowns/code in AsScene1201Creature
- Fix AudioResourceMan::isSoundPlaying
2013-05-08 20:43:47 +02:00
johndoe123
a5986fd722 NEVERHOOD: Fix resource file reading by introducing SafeMutexedSeekableSubReadStream which locks a mutex during reads and also lock the same mutex in BlbArchive::load; loading resources while music is playing shouldn't mess up the file position now
- Fix loading of non-existent resources (not elegant and not checked everywhere yet, the resource system is subject to a minor rewrite anyway)
- Rename more Klayman stuff
2013-05-08 20:43:43 +02:00
johndoe123
a2bc192912 NEVERHOOD: Add sound lists to all modules which have them 2013-05-08 20:43:42 +02:00
johndoe123
fc0e40db30 NEVERHOOD: Implement the actual audio code
Sounds and music play now in some scenes
(I didn't change the comments to code in all modules yet)

- Fix calcHash to ignore non-alphanumeric characters, this fixes at least
  one animation glitch (when inserting tapes into the player)
- Move SoundResource to sound.cpp
2013-05-08 20:43:42 +02:00
johndoe123
0bb70c39f0 NEVERHOOD: More work on the SoundMan
- Also changed all sound related function calls which are still TODO to the new names
2013-05-08 20:43:42 +02:00
johndoe123
65afa25c9f NEVERHOOD: Implement the SoundMan; no sound is played yet since the important code doesn't exist yet 2013-05-08 20:43:42 +02:00