Commit graph

67 commits

Author SHA1 Message Date
Gleb Mazovetskiy
0dd9aeea69 ♻️ Cleanup DISABLE_STREAMING_MUSIC handling
Extracts `LoadMusic` and `CleanupMusic` functions.
2021-04-28 12:51:24 +02:00
Gleb Mazovetskiy
4b7409a8bf 🎶 Loop the music
Follow-up to #1651
2021-04-27 20:06:18 +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
Jmgr
1b7e0d2cb3 Migrate existing log entries 2021-04-25 02:39:42 +02:00
Anders Jenbo
a32ac83090 🎨 cleanup trivial trype comparisons 2021-04-23 02:48:25 +02:00
Anders Jenbo
bb4e1960e7 🎨 modernize-use-nullptr 2021-04-19 16:02:05 +02:00
Anders Jenbo
8c821e98d3 🚚 Restructure files 2021-04-16 03:57:22 +02:00
Anders Jenbo
997c1dba55 🚚 Split up all.h in to proper header relations 2021-04-16 01:04:54 +02:00
Anders Jenbo
6e1a106a38 🚚 Move header we implement into the project 2021-04-16 01:04:54 +02:00
Anders Jenbo
67a7ff98c5 🚨 Clean up compiler warnings 2021-04-16 01:04:54 +02:00
Anders Jenbo
52401c9677 💚 Correct include headers 2021-04-10 14:31:05 +02:00
Anders Jenbo
dc84643fe6 🚚 Move dx.cpp and sound.cpp back in to Source now that the name space is clean 2021-04-10 14:30:22 +02:00
Anders Jenbo
5ff14b59da Remove unused source 2019-09-13 03:56:32 +02:00
Anders Jenbo
98ab9b9600 Merge branch 'master' of github.com:diasurgical/devilution 2019-08-18 08:07:33 +02:00
Anders Jenbo
68d51e7d27 Implementing Spawned Shareware version 2019-08-12 16:04:20 +02:00
Anders Jenbo
2fcf8dab70 Merge branch 'master' of github.com:diasurgical/devilution 2019-07-21 19:39:17 +02:00
Anders Jenbo
6fba17eec5 Correct GLOBAL types based on PSX SYM 3 2019-07-21 04:10:31 +02:00
Anders Jenbo
e6f4e21631 Merge branch 'master' of github.com:diasurgical/devilution 2019-06-16 19:18:19 +02:00
Sergey Semushin
7e39fe457f Fix diff in snd_play_snd. 2019-06-15 11:20:25 +02:00
Anders Jenbo
23e7737c75 Merge branch 'master' of github.com:diasurgical/devilution
Fixes #92
2019-05-05 00:27:08 +02:00
Anders Jenbo
e5f4fdcec9 Clean up sound.cpp 2019-05-02 00:16:46 +01:00
Xadhoom
6856fb74e2 Merge upstream beanch 'devilution/master' 2019-04-25 20:44:01 +00:00
Anders Jenbo
65b9fb87a8 Merge branch 'TownDead' 2019-04-24 14:08:25 +02:00
galaxyhaxz
540892ff9d Preliminary support for fixed header files 2019-04-21 17:20:38 +02:00
galaxyhaxz
4e01e03711 Cleanup default calling conventions 2019-04-09 12:04:00 +02:00
Anders Jenbo
a907a4d49b Merge branch 'master' of github.com:diasurgical/devilution 2019-04-05 15:21:53 +02:00
galaxyhaxz
5238265702
Implement assert support (#791) 2019-03-29 21:26:37 -05:00
Anders Jenbo
bc26a2f730 Merge branch 'master' of github.com:diasurgical/devilution 2019-03-18 21:52:35 +01:00
Anders Jenbo
fda317a24e Clean up storm/sound_update (#663) 2019-03-18 11:23:24 +09:00
Xadhoom
83d902c4a4 Merge branch 'master' 2019-03-16 12:37:02 +00:00
Anders Jenbo
f062ec0c93 Clean up sound.cpp (#655) 2019-03-15 10:42:09 +09:00
Xadhoom
ecb242ae62 Merge branch 'master' 2019-03-12 09:36:42 +02:00
Anders Jenbo
3d0cd681df Merge branch 'master' of github.com:diasurgical/devilution 2019-03-12 02:01:16 +01:00
Xadhoom
5283a9ffd1 Put everything into namespace dvl 2019-03-11 20:10:23 +00:00
Anders Jenbo
fb4686c9bb Revert incorrect fix of sound_file_reload 2019-03-11 01:49:36 +01:00
Anders Jenbo
f7c999830e
Update sound.cpp 2019-03-10 19:38:55 +01:00
Anders Jenbo
3b7d3ac8a2 Clean up types in sound.cpp (#603) 2019-03-10 12:41:50 +09:00
Anders Jenbo
4223512c72
Implement most of sound.cpp (#34)
* Implement most of sound.cpp

This fixes
- Menu sounds being cut short
- Spartial sound in game
- Memory leaks
- Sound volume

* Some minor bugfixes
2019-03-10 04:14:29 +01:00
Anders Jenbo
429ececce0 Fix debug build as C (#566)
* Clean up todo

* Fix debug build
2019-01-14 18:54:12 +01:00
Anders Jenbo
9b7da61dcf Auto format src 2019-01-13 18:55:59 +01:00
Anders Jenbo
86018b174b Make DirecX usage C compatible 2018-12-31 03:17:08 +01:00
Anders Jenbo
024d99fc9e C compatability from s (#521) 2018-12-29 21:15:33 +01:00
galaxyhaxz
24285a220f
WinMain+Direct file access from HDD (#456) 2018-11-09 16:22:56 -06:00
Anders Jenbo
b1f6d3698f Update style to use tabs 2018-10-25 22:53:04 +02:00
Anders Jenbo
c24569205d Format compleated files 2018-10-19 03:02:43 +02:00
Anders Jenbo
456d651f55 Clean up more bools related to sound.cpp 2018-10-18 20:32:44 +02:00
Anders Jenbo
8e2d0df643 Clean up some bools 2018-10-18 20:32:44 +02:00
Andrew Dunstan
5dd1153979 rename riff_chunk -> CKINFO 2018-10-18 13:26:59 +02:00
Andrew Dunstan
4c085a734b clean wave.cpp 2018-10-18 13:26:59 +02:00
Robin Eklind
7515655efb Run format.sh 2018-10-06 22:52:58 +02:00