Commit graph

18071 commits

Author SHA1 Message Date
Chris Robinson
573784b37f Handle the SoundStream in MvePlayer instead of InterplayDecoder 2022-10-10 08:33:23 +02:00
Chris Robinson
bf933b3904 Decode audio and video separately in InterplayDecoder 2022-10-10 08:33:23 +02:00
Chris Robinson
fa2cea3e5b Read whole chunks at a time from Interplay MVE files 2022-10-10 08:33:23 +02:00
Chris Robinson
80bf62cb3c Start the VPX audio track on the first frame
MoviePlayer::Start is called about a second (potentially) before
MoviePlayer::Frame starts getting called to actually play the video, causing
the audio to start early and require significant synchronization adjustment.
This isn't ideal to constantly check if the audio track needs to play in
MoviePlayer::Frame, but it's better than starting prematurely.
2022-10-10 08:33:23 +02:00
Chris Robinson
5e465a65e2 Make a common class to help with movie audio streams 2022-10-10 08:33:23 +02:00
Chris Robinson
d11e2ef1ac Always output 16-bit samples from SmackerDecoder 2022-10-10 08:33:23 +02:00
Chris Robinson
3b6723e6f2 Better report the number of Smacker audio tracks 2022-10-10 08:33:23 +02:00
Chris Robinson
1a692f5c28 Synchronize Smacker movie audio tracks 2022-10-10 08:33:23 +02:00
Chris Robinson
5d00b96e5f Read Smacker video and audio data separately 2022-10-10 08:33:23 +02:00
Chris Robinson
19a4eb79aa Read in full packets at a time from smacker files 2022-10-10 08:33:23 +02:00
Chris Robinson
7401e02a14 Include the source latency for movie audio synchronization 2022-10-10 08:33:23 +02:00
Chris Robinson
23fff7791e Update and use OpenAL Soft's extension headers 2022-10-10 08:33:23 +02:00
Chris Robinson
c825ff3543 Use a more reasonable buffer size for the movie audio stream 2022-10-10 08:33:23 +02:00
Chris Robinson
a2f0c1aee6 Update the audio offset when skipping a full update 2022-10-10 08:33:23 +02:00
Chris Robinson
1a233b08c3 Synchronize the VPX "soundtrack" with the frame clock 2022-10-10 08:33:23 +02:00
Chris Robinson
78f40fe99c Add a method to retrieve the play position of a SoundStream 2022-10-10 08:33:23 +02:00
Chris Robinson
c808aad595 Play the VPX "soundtrack" as a SoundStream 2022-10-10 08:33:23 +02:00
Christoph Oelckers
94b249172a - normalize the timer with the app start, not the epoch.
This ensures smaller values and less wraparounds with integer values in scripts.
2022-10-09 14:52:08 +02:00
Christoph Oelckers
b225a910a0 - Backend update from Raze 2022-10-09 13:44:43 +02:00
Kevin Caccamo
83373d117d Fix compilation on POSIX (Linux/macOS) systems 2022-10-02 22:04:40 +02:00
Christoph Oelckers
2c29a93f1f - fixed compile. 2022-10-02 20:45:00 +02:00
Christoph Oelckers
519005ff4d - snd_reset cannot be shared. 2022-10-02 20:22:23 +02:00
Christoph Oelckers
00bb258d58 - moved some stuff from wipe.h to wipe.cpp. 2022-10-02 19:26:23 +02:00
Christoph Oelckers
207913bced - added a config getter to the interface.
Now the only external reference left in the backend code is the call to GameMain.
2022-10-02 18:42:08 +02:00
Christoph Oelckers
e6615629b3 - move two more backend->frontend calls to the interface 2022-10-02 18:29:57 +02:00
Christoph Oelckers
b19b0db150 - moved language CVAR to backend. 2022-10-02 17:59:39 +02:00
Christoph Oelckers
73142ef2cf - handle menu customization via callbacks. 2022-10-02 17:49:39 +02:00
Christoph Oelckers
a084667bed - move hud scale CVARs to the backend. 2022-10-02 17:33:49 +02:00
Christoph Oelckers
9076145319 - handle autoload flags in startup through function parameters instead of directly accessing the CVARs. 2022-10-02 17:12:34 +02:00
Christoph Oelckers
f63d4d8a12 - handle Build tiles via explicit callback to the init function. 2022-10-02 16:54:43 +02:00
Christoph Oelckers
8aaab153fa - add a system interface for CheckCheatmode and moved some sound code to the backend. 2022-10-02 16:48:56 +02:00
Christoph Oelckers
75afc69306 - moved IWAD CVARs to backend. 2022-10-02 14:42:26 +02:00
Christoph Oelckers
c596095fe0 - minor cleanup. 2022-10-02 14:36:49 +02:00
Christoph Oelckers
8e6bdd72fa - moved UpdateVRModes, AppActive and gamestate into the backend. 2022-10-02 14:28:40 +02:00
Christoph Oelckers
65f6e788eb - moved gitinfo.h into the backend 2022-10-02 14:20:15 +02:00
Christoph Oelckers
307ff4e163 - pass filename to I_WriteIniFailed as parameter.
This accessed game data from the backend.
2022-10-02 14:08:07 +02:00
Christoph Oelckers
34f30ee70b - remove gi.h includes in backend code. 2022-10-02 14:04:24 +02:00
Christoph Oelckers
01f8131969 - moved chatmodeon to the backend. 2022-10-02 14:01:43 +02:00
Christoph Oelckers
12adee5256 - fixed a few includes 2022-10-02 13:57:36 +02:00
Player701
78360c1888 - Exported GetDisplayTopOffset for font characters to ZScript 2022-09-30 10:07:41 +02:00
inkoalawetrust
69b9f107f0 Added support for BLOCKLANDMONSTERS in Line_SetBlocking.
This PR was written by MrRaveYard
2022-09-28 07:56:12 +02:00
inkoalawetrust
502c9fef5c Added APROP_FriendlySeeBlocks to Set/GetActorProperty 2022-09-24 16:44:11 -04:00
ZZYZX
662027f429 Fix typo that was always calling SetXOffset even in SetYOffset 2022-09-20 15:08:02 -04:00
ZZYZX
a4a4e4e9f9 Fix planeval; add direct sector slope manipulation 2022-09-20 15:08:02 -04:00
ZZYZX
f049421831 Modify to have one GetVertexZ rather than IsVertexZSet / GetVertexZ 2022-09-20 15:08:02 -04:00
ZZYZX
a58acfc625 Add vertex height manipulation functions to LevelPostProcessor 2022-09-20 15:08:02 -04:00
Alison Watson
18a67cfdb2 use constexpr constructor for PARAM_COLOR_AT 2022-09-16 20:50:33 +02:00
Alison Watson
c6d6322494 use PalEntry instead of int for ParseDrawTextureTags 2022-09-16 20:50:33 +02:00
Alison Watson
fb32ff45dd fix Screen.DrawShapeFill not properly setting renderstyle 2022-09-16 20:50:33 +02:00
Chronos Ouroboros
12995b84c7 - fixed FDynArray_Obj not performing write barriers properly. 2022-09-16 20:45:39 +02:00
nashmuhandes
7ce364bf0f Add sv_noextraammo. When set to true, disables that weird hardcoded behavior from original Doom that gives extra ammo when picking up weapons in deathmatch 2022-09-15 20:41:16 -04:00
Christoph Oelckers
c87e87365d - fixed: all script methods adding an object to a dynamic array must perform a write barrier. 2022-09-08 13:30:00 +02:00
Christoph Oelckers
175c91308a - move BobSin to game side. 2022-09-04 09:01:57 +02:00
Christoph Oelckers
8cba80a2cd Revert "- fixed allocation size when constructing a string from a file system entry."
This reverts commit 513d8cea8d.

This change broke voxel loading and possibly other things as well
2022-09-04 08:58:45 +02:00
inkoalawetrust
664ccf8a7c - fix bug with 06ee21c51d - if (!pl) should always return false 2022-09-03 19:06:46 -04:00
Rachael Alexanderson
ca6a2152b9 - add freezetics actor property 2022-09-03 17:58:16 -04:00
Rachael Alexanderson
06ee21c51d
- allow notification of actor goal is reached inside of a SECF_NOATTACK sector 2022-09-03 17:37:48 -04:00
Emile Belanger
ba83879e99 GLES2: Fix anistropic filtering 2022-08-30 18:33:52 -04:00
Christoph Oelckers
c7e425f759 - make TAngle::Degrees() constexpr. 2022-08-26 18:32:23 +02:00
Christoph Oelckers
7ad09c7a77 - fixed sky cap color handling
Backported from Raze
2022-08-26 18:17:02 +02:00
Christoph Oelckers
ed5287ef23 - added Q16 and Build angle converters to TAngle
To have full coverage. Q16 is what ACS uses and Build angles are needed in Raze.
2022-08-26 18:09:39 +02:00
Christoph Oelckers
4032576519 - blocked off direct access to TAngle’s internal storage. 2022-08-26 18:09:29 +02:00
Christoph Oelckers
3d2578820b - block direct comparisons of TAngle with floats 2022-08-26 18:01:52 +02:00
Christoph Oelckers
f0fbdba593 - disable implicit conversions from float to TAngle 2022-08-26 18:01:26 +02:00
Rachael Alexanderson
8468f712e0 - fix arti teleport and arti teleother not respecting useplayerstartz mapflag 2022-08-26 04:11:29 -04:00
Marisa the Magician
8c0ad50db3 UE1 models now handle frame index -1 properly. 2022-08-24 19:56:07 +02:00
Yarn366
f27acfa6b2 Add support for the GOG releases of the Unity versions of Doom and Doom II. 2022-08-19 08:00:53 +02:00
Rachael Alexanderson
0eae1b9be2 - change the Linux/BSD version of system call to std::system 2022-08-18 00:42:27 -04:00
Christoph Oelckers
4bdb8edea6 - removed redundant argument. 2022-08-18 00:06:40 +02:00
Christoph Oelckers
03c725c0da - use NSFileManager on macOS to handle the current directory. 2022-08-17 23:43:56 +02:00
Christoph Oelckers
532a493752 - get_current_dir_name apparently does not exist on macOS 2022-08-17 22:57:30 +02:00
Christoph Oelckers
7f3c09c918 - use get_current_dir_name for I_GetCWD on POSIX. 2022-08-17 22:51:39 +02:00
Rachael Alexanderson
e261132db0 - use char* get_current_dir_name() in Mac/Linux to save the cwd in the shell open function 2022-08-17 16:32:09 -04:00
Christoph Oelckers
a2369b945c - fixed custom obituary lookup. 2022-08-17 21:35:59 +02:00
Christoph Oelckers
1940527dba - carry over the tiling flag from the finished to the entering screen 2022-08-17 21:28:52 +02:00
Ed the Bat
88674b5ea0 Prevent Keyconf from adding duplicate playerclass 2022-08-17 21:12:10 +02:00
Christoph Oelckers
513d8cea8d - fixed allocation size when constructing a string from a file system entry.
The internal allocator already added space for the terminazing \0, so the string's size was one character too large.
2022-08-17 21:10:15 +02:00
Christoph Oelckers
8d3c1adf05 - do not use POSIX directory functions in common code.
For Windows these need to redirect to Unicode system functions to properly handle paths not representable in 8 bit encodings.
2022-08-17 10:02:25 +02:00
Christoph Oelckers
c5f4967871 - cleanup of Windows's I_OpenShell* functions
* do not use deprecated library features (wstring_convert was deorecated in C++17) - instead use the existing WideString utility.
* do proper calculation of the current directory's path length.
* remove the mostly redundant I_OpenShellFile function and instead use ExtractFilePath to get the config's path.
2022-08-17 00:31:22 +02:00
Rachael Alexanderson
64824430fa - make shell folder functions unicode aware 2022-08-16 22:10:09 -04:00
Rachael Alexanderson
ee132372d8 - patch for this note: 03d76027cf (commitcomment-81265953) 2022-08-15 21:35:36 -04:00
Rachael Alexanderson
a9cadd345d - change the way posix folders are opened - fixes issue #1707 2022-08-14 18:38:20 -04:00
Rachael Alexanderson
03d76027cf - fix issue #1708 - respect user preferences when specifying custom save/config/screenshot paths 2022-08-14 15:03:20 -04:00
Rachael Alexanderson
dd07f6513f - encapsulate folder/file names in quotes on Windows too 2022-08-14 10:38:15 -04:00
Rachael Alexanderson
259a8e0f74 - fixed: encapsulate folders for shell commands in quotes for Linux/Mac 2022-08-12 23:20:30 -04:00
Christoph Oelckers
e27e3453f9 - fixed obituary string generation 2022-08-12 21:24:09 +02:00
Yarn366
6489f5ebf0 Add detection for the Final Doom WADs that were recently added to the Steam version of Doom II.
Also add detection for the Steam Unity versions of Doom and Doom II to posix/i_steam.cpp, which was apparently missed by whoever added it to the win32 version.
2022-08-12 11:39:41 +02:00
Christoph Oelckers
1b43575580 - new method to define obituaries without modifying actors.
Adding strings to the language file named OBITUARY_{classname}_{damagetype} or OBITUARY_{classname} will now be detected automatically and override all other definitions.
This not only allows damage type aware obituaries but also makes it easier to retroactively add them to mods that have none defined.
2022-08-11 23:46:09 +02:00
Christoph Oelckers
c89ae6358e - Backend update from Raze, mostly maintenance changes without new functionality. 2022-08-11 22:51:19 +02:00
Christoph Oelckers
283c5d688c Merge branch 'master' of https://github.com/coelckers/gzdoom 2022-08-11 22:39:53 +02:00
Rachael Alexanderson
8e50c59301 - remove latch flag from sv_cheats 2022-08-11 15:43:22 -04:00
nashmuhandes
50d16c75d9 Add corona actor 2022-08-11 20:38:24 +08:00
Rachael Alexanderson
04a6fa321b - use FString instead of std::string in the Windows shell functions 2022-08-10 18:13:49 -04:00
Rachael Alexanderson
f2df781b76 - add menu entries 2022-08-10 13:10:13 -04:00
Rachael Alexanderson
82d0376520 - add openscreenshots opensaves and openconfig console commands on Windows and Linux and Mac 2022-08-10 13:00:33 -04:00
Christoph Oelckers
4710a40fb5 - reapply PR 1512 which was accidentally deleted 2022-08-09 10:48:00 +02:00
Christoph Oelckers
735c2a9545 - pass clip rect as pointer to F2DDrawer::AddLine. 2022-08-05 21:13:47 +02:00
Marisa the Magician
931211b9db Export FindLumpFullName to ZScript. 2022-08-05 20:25:02 +02:00
Marisa Heit
4c6d0e4209 Better error message for unknown nested types 2022-08-04 07:42:46 +02:00
Marisa Heit
66460bfeb8 Add support for nested user types
The grammar already understood these constructs. Now the compiler does too.
2022-08-04 07:42:46 +02:00