Commit graph

253 commits

Author SHA1 Message Date
3f92377c67 Use pkg-config to find libraries 2022-12-27 21:00:51 +01:00
a753ae7172 Fix license field for Guix package 2022-12-27 20:17:44 +01:00
e75de60cc1 Add a package definition for Guix 2022-06-13 15:54:08 +02:00
ab595ad4a7 cmake: add install target 2022-06-13 13:01:23 +02:00
8c548fe270 Update LICENSE and README 2022-06-12 18:54:54 +02:00
1e38669119 Replace max macro with std::max in C++ code
Fixes compilation on Guix with gcc 12. Not sure which of those is
relevant.
2022-06-12 16:53:06 +02:00
0aa9a623f3 cmake: don’t look for avresample
It’s not used and was dropped from ffmpeg.
2022-06-12 16:42:28 +02:00
27800ea9eb Bink: replace AVFrame.channel_layout with .channels
Replace again with .ch_layout when ffmpeg finish changing their mind.
2022-06-12 16:23:24 +02:00
0fd40ff481 Implement music in menus 2020-11-14 17:14:18 +01:00
5b9a0e939c Bink: remove redundant audio info from binkMovie
Read the sample rate and number of channels from individual audio frames.
2020-06-03 14:02:02 +02:00
cb72993765 Bink: reorder and rename binkMovie fields 2020-06-03 14:01:25 +02:00
975c2cfdb9 Bink: add a queue for video frames
Decode one or more video frames in advance. This prevents the input
stream blocking while waiting for video packets to be drained, and
makes the playback smoother.

Also factor out reclamation of processed audio buffers, which is now
independent from decoding new packets.
2020-06-03 14:00:24 +02:00
b9e2075c7e Bink: minor reorder in AL init 2020-05-31 13:51:44 +02:00
2515a50a52 Bink: remove useless memset
Actual audio data is copied over it anyway.
2020-05-31 13:20:36 +02:00
2793d4f39b Bink: s/ReadFrame/ReadPacket 2020-05-31 13:02:27 +02:00
1fa524ff67 Bink: simplify AL buffer reclamation code 2020-05-31 12:37:55 +02:00
2bc7bac0f3 Bink: move format-independent AL initialization to BinkStartMovie 2020-05-31 12:34:18 +02:00
ea39a84273 Bink: fix audio sample conversion 2020-05-31 10:55:11 +02:00
1f5fc9343a Bink: free sws context when destroying a movie 2020-05-30 02:32:31 +02:00
e6a01e2379 Bink: clean up headers and formatting 2020-05-30 02:32:31 +02:00
3c3b436cc1 Replace deprecated ffmpeg functions and types
Refactor and update decoding functions. Use absolute frame times to
maintain consistent video FPS.
2020-05-30 02:32:31 +02:00
628a27b38b Remove deprecated ffmpeg initialization 2020-05-30 02:32:30 +02:00
c4409487fd Const correct (most) strings
At least those cases that are reported by gcc and/or clang.
2020-05-30 02:32:30 +02:00
8ddbab1cc2 Include bink.h where needed 2020-05-30 02:32:30 +02:00
e43f651bbc Enable SDL2 code
Apparently it works (for me).
2020-05-21 21:07:49 +02:00
6d53d0b217 Remove stub definition for WaterFallBase
It’s defined in opengl.c and gcc≥10 rejects multiple definitions.
2020-05-21 21:03:45 +02:00
7830584796 Include the --debug option in help text 2020-04-23 18:52:43 +02:00
e2af28bdca Remove extraneous parens from ifs
Reported by clang.
2020-04-23 18:52:43 +02:00
c195987770 Use strcat instead of strncat for a constant string
GCC complains otherwise.
2020-04-23 18:52:43 +02:00
49d9cf6d7f Fix format conversion specifiers for pointers
Use %p instead of %x + cast to int. Reported by GCC.
2020-04-23 18:52:43 +02:00
e7564e9f9d Fix single-player menu initializer
Without a designator the first member of the union is initialized,
which makes clang warn about conversion between enums.
2020-04-23 18:52:43 +02:00
26ea21551e Don’t discard const when copying a pointer
Reported by GCC.
2020-04-23 18:52:43 +02:00
b87daf8d02 Compare return value of strncmp to 0, not NULL 2020-04-23 18:52:43 +02:00
e5ce2cb250 Don’t return a value from void function 2020-04-23 18:52:43 +02:00
d57a0621de Add missing field initializers to damage profile definitions
Cannot be _sure_ which values are missing, but looking at the usage
it’s likely MakeExitWounds, which is only set for bullets.
2020-04-23 18:46:13 +02:00
f5978aef79 Remove accidental semicolon
Reported by clang.
2020-04-23 18:45:43 +02:00
df6ea6eef6 Fix an off-by-one in ScanHModelForDecals
VECTORCH has four elements. Reported by GCC.
2020-04-23 18:45:33 +02:00
ecfbee98c5 Fix an off-by-one error in key config menu
When checking for user input in the keyboard config menu, a read past
the end of the DebouncedKeyboardInput array returned a nonzero value
on some systems, which prevented setting a valid binding.
2020-04-23 18:39:20 +02:00
152e6d7f26 Fix crash in DrawMainMenusBackdrop
Remove some obsolete and dysfunctional code that was triggered when
binked menu background was implemented.
2020-04-23 18:39:15 +02:00
neuromancer
805bc3e30e updated README 2019-08-20 03:56:43 +02:00
gaa-cifasis
310cf0da7c merged support for playing bink cutscenes and added 1366x768 resolution 2019-08-20 03:56:27 +02:00
gaa-cifasis
7aea1acf44 added libav to cmake 2019-08-20 03:56:20 +02:00
Steven Fuller
5673c1665a Import icculus.org release (2017-05-05) 2019-08-20 03:51:51 +02:00
Steven Fuller
0de664d0a8 Import icculus.org release (2015-02-14) 2019-08-20 03:51:33 +02:00
Steven Fuller
22475d6d94 Import icculus.org release (2014-12-25) 2019-08-20 03:45:24 +02:00
Steven Fuller
819e239f23 Switched openal-config with pkg-config openal. 2019-08-20 02:22:37 +02:00
Steven Fuller
100970c8d7 Removed obsolete SI-era OpenAL initialization. 2019-08-20 02:22:37 +02:00
Steven Fuller
accc5bbd8d Trying out using alpha test to emulate color keying.
The original D3D code used SetColorKey to remove the transparent bits
from certain textures, like the HUD alien tail.  As there's no
straightforward way to do this in OpenGL without using fragment
programs, enable alpha test to reject fragments with zero alpha.  This
might break a few things that have alpha set to zero when translucency
is off -- I fixed the few cases that I found.
2019-08-20 02:22:37 +02:00
Steven Fuller
e69698d11e Added the missing support for static on the televisions. 2019-08-20 02:22:37 +02:00
Steven Fuller
55ddb88c8e Removed D3DOverlayColourControl. 2019-08-20 02:22:37 +02:00