Roman Fomin
61302e811f
fix sound clicking from chaingunners ( #837 )
2022-12-09 08:12:56 +01:00
Fabian Greffrath
e4ecf2d163
always define a "next" map for a UMAPINFO entry ( #833 )
...
* always define a "next" map for a UMAPINFO entry
* use MAPNAME()
* cosmetic change
2022-12-07 21:46:23 +01:00
Fabian Greffrath
7df1465e64
call S_StopLoop() whenever moving plats reach pastdest state ( #830 )
2022-12-07 21:43:03 +01:00
Fabian Greffrath
735a99b0a2
bump miniz to 3.0.1 ( #827 )
2022-12-07 09:53:34 +01:00
Roman Fomin
702e5b7be7
fix skull position in help screen for gamemode == commercial
( #828 )
2022-12-07 15:44:31 +07:00
Roman Fomin
b230c1481f
hot-swappable music modules, list of Windows MIDI devices ( #824 )
...
* hot swap of music modules
* get a list of Windows MIDI devices
* move "MIDI Player" menu item only on Windows build
* increase MAX_MIDI_PLAYERS, index fixes
* fix hot swapping with UMAPINFO music, init OPL on song change
* initialize OPL only when necessary
* call I_ShutdownMusic in exit sequence
* don't send SysEx reset for MS GS Synth
* introduce `I_DeviceList` function, rearrange code
* `midi_player_strings` must be NULL at the end
2022-12-07 15:44:05 +07:00
Ryan Krafnick
84aa5955d0
Fix plat infinite sound loop ( #825 )
2022-12-04 23:35:13 +01:00
Roman Fomin
c7e09871dd
Revert "winmidi: remove unnecessary midiOutReset
call"
...
Ops, misunderstand comment.
This reverts commit 912b325172756dce19b639a23358cecaeab165fa.
2022-12-03 23:43:38 +07:00
Roman Fomin
912b325172
winmidi: remove unnecessary midiOutReset
call
...
It is duplicated in `ResetDevice`.
2022-12-03 22:21:36 +07:00
ceski
5734d8b589
winmidi: Fix looping ( #823 )
...
* winmidi: Fix looping
* Send NOP event for non-tempo meta events
* Revert "Send NOP event for non-tempo meta events"
This reverts commit 7e71eca6b3d8eec8dfc5a920a40c960c1f0bdc46.
* Ignore unsupported event types
* Update copyright
* Update README.md
2022-12-03 20:45:24 +07:00
Fabian Greffrath
0c635fea7e
use ColorByHealth() on evry possible occasion in hu_stuff.c
2022-12-03 13:59:44 +01:00
Alaux
b1d93a847d
Implement crosshair coloring by target health ( #821 )
...
* Color crosshair by target health
* Add missing element to `crosshealth_t`
* Second implementation
* Introduce `ColorByHealth()`
* Change `ColorByHealth()`'s arguments
* Disable "Highlight Color" item when appropriate
2022-12-03 10:49:46 +01:00
ceski
e88086684c
winmidi: Enable SysEx messages from MIDI files ( #822 )
...
* winmidi: Enable SysEx messages from MIDI files
* Remove unused variable
* Discard incomplete SysEx messages when a song loops
* Write all 0xF0 SysEx messages, ignore all 0xF7 SysEx messages
* Remove extra delay after reset
* Remove `winmm_allow_sysex`
* Don't use compound literal
2022-12-03 16:43:11 +07:00
ceski
e4a18d4aeb
winmidi: SysEx fixes ( #820 )
...
* winmidi: SysEx fixes
* Add configurable SysEx reset
* Add configurable delay after reset
* Lower reset type setting range
* Add configurable blocking of SysEx messages from MIDI files
* Cosmetic changes
* Remove NOP
* Add NOP back and add extra `winmm_allow_sysex` check
* Move initial buffer processing to separate thread
2022-12-02 16:09:27 +07:00
Roman Fomin
96d61b805c
winmidi: add more resets
...
Fixes reset in Virtual Sound Canvas VST v1.60
2022-12-01 21:04:42 +07:00
Fabian Greffrath
e90b7702e8
increase MAX_SCREENWIDTH to 1152
...
This is meant to add support for non-exactly 21:9 screens, such as
3840x1600 (WQHD+). Unlikely to get ever increased further than that, though.
Fixes #819
2022-12-01 12:05:50 +01:00
Fabian Greffrath
b1585460b0
Update CHANGELOG.md
2022-12-01 10:16:40 +01:00
Alaux
6b4e76c6d9
Implement crosshair target lock-on ( #814 )
...
* Implement crosshair target lock-on
* Calculate lock-on offset in `R_ProjectSprite()`
* Introduce `HU_UpdateCrosshairLock()`
* A couple of changes
* More changes
* Update lock offset just once per tic
2022-12-01 08:52:09 +01:00
Roman Fomin
94efdea7c3
winmidi: bring back MIDI_EVENT_SYSEX_SPLIT
2022-12-01 12:48:38 +07:00
Roman Fomin
9953ba7b67
winmidi: cosmetic changes
2022-12-01 10:26:39 +07:00
Roman Fomin
6323ef42f6
winmidi: fix SysEx messages
...
Tested with Yamaha S-YXG50 software emulation.
2022-12-01 04:24:23 +07:00
Roman Fomin
d3e0001d90
winmidi: cosmetic fixes
2022-11-30 20:12:20 +07:00
Fabian Greffrath
b596220967
support dedicated music for Episode 4 of Ultimate Doom ( #818 )
...
* support dedicated music for Episode 4 of Ultimate Doom
* suppoer UMAPINFO music in the IDMUS cheat
2022-11-30 12:52:11 +01:00
Roman Fomin
c338701fea
winmidi: send SysEx messages, use SysEx reset ( #816 )
...
* initial implementation of SysEx messages
* don't use memio
* send SysEx reset message, don't use `midiOutShortMsg`, cosmetic fixes
* try to fix cppcheck warning
* another attempt to fix cppcheck warning
* remove unused variable
* fix looping, another type of SysEx
* round buffer size
* use GS Reset message instead of GM System On
* move up MIDI_CONTROLLER_MAIN_VOLUME, add comment
* fix title and MAP03 tracks in MAYhem19.wad
* bring back `native_event_t`
* another looping fix
* cosmetic fixes
* fix looping delay
* use PADDED_SIZE macro
* remove master_vol message
* more cosmetic fixes
* delete unused variable
* send reset at shutdown
* Revert "send reset at shutdown"
This reverts commit 6bed6016caeeb38dd352fc8319c113796a5c1164.
* reset device at shutdown
* fix comments
2022-11-30 09:30:27 +01:00
Roman Fomin
60d15ea920
fix NULL string comparison in deh parser ( #817 )
2022-11-29 06:42:51 +01:00
Fabian Greffrath
b3ff45d15c
make the condition to start a new sequence less critical
...
In paticular, if less time than required for a full shading sequence has passed,
don't start a new one. This allows to skip a gametic between two rendered frames,
which apparently happens sometimes.
2022-11-28 20:10:44 +01:00
Fabian Greffrath
a63e16b14c
introduce
2022-11-28 08:45:44 +01:00
Fabian Greffrath
1fb4a96cab
introduce automap_on/automap_off macros
2022-11-28 08:41:09 +01:00
Fabian Greffrath
fbf6b42237
user overlay_t everywhere
2022-11-28 08:32:49 +01:00
Fabian Greffrath
e087e44d8b
fix comment
2022-11-28 08:31:47 +01:00
Alaux
a599174b61
Implement dark automap overlay ( #813 )
...
* Implement dark automap overlay
* Second implementation
* Third implementation
* Fourth implementation
* Introduce `M_MenuIsShaded()`
2022-11-28 08:31:08 +01:00
Fabian Greffrath
31dd96a2ec
always force checking for gamemode for doom1.wad IWAD
2022-11-27 18:32:39 +01:00
Fabian Greffrath
01caf9c5f5
do not allow autoloading in shareware gamemode
2022-11-27 18:31:26 +01:00
Fabian Greffrath
c2204bc56a
Update CHANGELOG.md
2022-11-23 15:41:01 +01:00
Fabian Greffrath
c527b4acb1
update SDL to 2.26.0
2022-11-23 08:25:26 +01:00
Alaux
d1ea5173a1
Remove V_MarkRect()
( #812 )
2022-11-23 07:51:16 +01:00
Fabian Greffrath
f70d372907
fix all cppcheck 2.9 warnings ( #771 )
...
* fix most cppcheck 2.9 warnings
* simplify matters
* simplify a bit more
* simplify
* more/better fixes
* whitespace cosmetic
* use I_Realloc() in u_mapinfo.c
2022-11-23 07:51:01 +01:00
Fabian Greffrath
d39d15a76b
Update CHANGELOG.md
2022-11-22 08:59:45 +01:00
Fabian Greffrath
3f6a03263c
add VGA "porch" behaviour emulation ( #811 )
2022-11-21 20:28:14 +01:00
Alaux
e5d9de2cf3
Add enums for stat
and auto
setup menus ( #810 )
2022-11-21 06:18:40 +01:00
Fabian Greffrath
77d6a6bf9c
color armor widgets gray we well in invulnerability mode
2022-11-20 21:22:34 +01:00
Fabian Greffrath
375a2084ce
increase parallel_sfx_limit default value to 4
2022-11-20 14:15:34 +01:00
Alaux
bbff21bb59
Make color of health count gray when invulnerable ( #809 )
2022-11-18 06:41:43 +01:00
Fabian Greffrath
d2a411bd20
rename max_instances back to parallel_sfx_limit and make configurable
2022-11-17 21:41:44 +01:00
Fabian Greffrath
4ea5788c90
some rearrangement in the sound code
2022-11-17 21:34:16 +01:00
Fabian Greffrath
df7a1d45bf
CI: all cppcheck calls on one line
2022-11-17 21:32:00 +01:00
Fabian Greffrath
f73f189abb
limit the number of identical sounds playing at once, based on priority ordering ( #807 )
...
* Revert "add parallel same-sound limit from DSDA-Doom (#796 )"
This reverts commit d7849c8fa7ba4b2c92a1784b92127df267f4e8db.
* first shot at sorting sounds by priority
* fix build
* our S_AdjustSoundParams() already mangles volume into priority
* add/fix comments
* newer same-priority sounds are supposed to stop older ones
* use qsort() instead of undocumented (whoops\!) SDL_qsort()
* back to newer same-priority sounds let older ones finish
* keep the singularity concept alive
* get rid of the lowestpriority concept, we already ordered channels by priority
* keep the "snd_channels = 16" default
* Revert "keep the "snd_channels = 16" default"
This reverts commit 79fc9b3332304aa7cd9f7ac687c46089f1d40918.
* Update s_sound.c
* maintain a stable sort (newer sounds have precedence)
* fix typo/thinko
* fix sort order
* fix comparison function return value
* Update s_sound.c
* last nit-pick (hopefully!)
2022-11-17 16:26:20 +01:00
Alaux
9bcf2be8a0
Have "Clear Marks" key clear just the last mark ( #808 )
2022-11-17 07:41:40 +01:00
Fabian Greffrath
cb26aa9b89
use regular qsort() instead of undocumented SDL_qsort()
2022-11-16 14:43:14 +01:00
Alaux
f15680d4f0
Remove unused function arguments ( #806 )
2022-11-16 09:06:37 +01:00