Commit Graph

160 Commits

Author SHA1 Message Date
modusc896d352
edde33489b Ongakukan ADPCM code improvements
significant improvements include:
- char flags in ongakukan_adp_lib.c have all, with one exception, been made to bools.
-- ATM, sample_mode will remain a char.
-- several other variables have been removed. they did not affect decoding in any significant way.
-- init_ongakukan_adpcm now accepts at least one bool as an argument for a total of four arguments.
-- many function from lib renamed to follow external lib function naming standard.

- simplified ongakukan_adp_decoder.c
-- decode_ongakukan_adp in particular benefited from this code simpification; loop is now re-done so all samples are copied to outbuf when they're made available.
-- as a consequence of this, at least one var was removed entirely, while others have been redefined into different purposes; samples_filled is now a bool var that flags whether or not all available samples were decoded.
-- init_ongakukan_adp has four arguments as well, and accepts at least one bool as an argument of its own.
-- streamfile is now close there as well instead of in the external decoder lib.

- adp_ongakukan.c saw much simpified code as well; meta checks have been relaxed significantly, which meant the removal of several var and at least three vars repurposed into bools.
-- supposed_size is introduced as an entirely new var; it now calculates the supposed file size of an ADP file with several 32-bit fields from the first byte as a base.
-- consequently, file_size checks are now made against supposed_size.

- as a consequence of all of the above, riff.c has now lost an additional RIFF size check; initially if RIFF chunk reported a big-enough size than RIFF file realistically has, it would be enough for vgmstream to stop working with said file.
2024-07-17 21:58:06 -03:00
modusc896d352
1d2ab676ec Add Ongakukan ADPCM decoder
[Train Simulator: Midousuji-hen (PS2)]
2024-07-17 16:58:11 -03:00
bnnm
9b90a7a260 cleanup: minor codec renames 2024-06-11 00:36:54 +02:00
bnnm
9b1e3369f7 Add RIFF .SE extension [Rockman X4 (PC)] 2024-05-11 15:32:40 +02:00
bnnm
43d107a482 Add .voi ATRAC3 [Sol Trigger (PSP)] 2024-04-28 23:21:24 +02:00
EdnessP
3116445e58 RIFF: WAX extension 2024-04-05 00:52:11 +03:00
bnnm
94282e0514 Fix some .adpcm [2013: Infected Wars (iOS)] 2024-03-31 16:09:36 +02:00
bnnm
c511f24942 Add .caf AIFC/RIFF extension [Topple (iOS)] 2024-02-04 15:25:53 +01:00
bnnm
fdc74dbaf8 Fix some .wav sizes 2023-12-30 17:04:29 +01:00
EdnessP
1da6977b72 RIFF: WMA/LWMA extension + size check adjustment 2023-09-16 23:27:26 +03:00
bnnm
cb3e42c0d7 doc 2023-09-15 17:29:42 +02:00
bnnm
4e85072cbc
Merge branch 'master' into pcm-fixed-32 2023-08-18 16:07:58 +02:00
Adam Gashlin
3a49c090a0 Support 32-bit integer PCM in RIFF
From masters for a Sonic Origins mod
2023-08-17 22:21:33 -07:00
Adam Gashlin
2930c8d20b Handle 32-bit float PCM RIFF 2023-08-17 21:47:55 -07:00
bnnm
46efa7c044 doc 2023-06-24 14:55:25 +02:00
bnnm
e839f0635f cleanup: move channel mappings to .h 2023-05-07 22:00:30 +02:00
makefilex
5a18c9cc9e
Update riff.c 2023-03-19 18:50:51 -03:00
bnnm
872db6072b remove maiatrac3plus code
- hasn't been used for a long time
2023-01-15 18:52:56 +01:00
bnnm
645f0ab4d4 cleanup: remove useless flags 2022-12-31 17:31:20 +01:00
bnnm
f0c430d740 Add RIFF .mus extension [Burnout Legends (PSP)] 2022-12-31 17:21:56 +01:00
bnnm
5faf24e9e9 Add RIFF .xms [Ty the Tasmanian Tiger (Xbox)] 2022-11-27 00:28:50 +01:00
bnnm
bb4ea0866c Add ATRAC9 .p1d extension 2022-09-16 23:40:27 +02:00
bnnm
3c0b2ed850 Tweak UE4 wav detection [GTA SA Remaster (Switch)] 2022-08-14 12:24:57 +02:00
bnnm
ec3999123c Add RIFF .ogg/logg extension [Luftrausers (Vita)] 2022-06-26 17:03:42 +02:00
bnnm
aee2a007ef Fix some .at3 RIFF [Megami no Etsubo (PSP)] 2022-06-19 19:36:44 +02:00
bnnm
c16f305ef6 cleanup 2022-05-01 20:35:11 +02:00
bnnm
a9ca198aad Add RIFF .xvag [Uncharted Golden Abyss (Vita)] 2022-02-28 23:57:51 +01:00
bnnm
ca65796ba6 Fix some broken .wav [Cross Gate (PC)] 2022-02-28 23:54:04 +01:00
bnnm
b790ef3cec Fix .wav with broken interleave [Rayman 2 (DC)] 2022-02-06 13:15:10 +01:00
grj1234
7aaa6e695e
RIFF: uncomment Ogg Vorbis mode 2+ [Only One (PC)] 2022-02-04 11:11:49 +09:00
bnnm
8572c62b12 Add .wav with MP3 [Bear's Imagine That! (PC)] 2022-01-08 21:00:13 +01:00
bnnm
382b0d2929 Fix some Ubi CKD [Rayman Origins (3DS/Vita)] 2021-12-31 16:20:52 +01:00
bnnm
e56a761482 riff: reject Ubi LyN 2021-12-11 12:47:00 +01:00
bnnm
dd4ac00fcb Add RIFF .pcm [Silent Hlll - The Arcade (AC)] 2021-11-13 14:43:29 +01:00
bnnm
64abb33fd7 Add PCM24 .wav [Omori (PC)] 2021-11-12 18:45:18 +01:00
grj1234
c145512f37 Add .nsa extension as RIFF WAWE [Hajimete no Otetsudai (PC)] 2021-10-22 05:44:04 +09:00
bnnm
5adae4db4c Fix some Ogg .wav [Kirara Kirara NTR (PC)] 2021-09-19 23:52:33 +02:00
bnnm
cf36348b77 add extra user logs 2021-08-26 19:39:58 +02:00
bnnm
8819cbf0b3 riff: fix codecs with some libs disabled, cleanup 2021-08-22 12:17:45 +02:00
bnnm
bfd1d28745 cleanup: misc 2021-07-29 22:46:34 +02:00
bnnm
0ac5959234 cleanup: fix compiler warning, etc 2021-07-29 17:08:30 +02:00
bnnm
3a7a23a785 Fix some .at3 [Sengoku Basara 4 (PS3)] 2021-07-13 23:46:27 +02:00
bnnm
d49aacbf52 Improve MSADPCM accuracy 2021-06-20 18:10:34 +02:00
NicknineTheEagle
12247d8a28 RIFF: Included PCM8_U and MSADPCM into cue chunk looping 2021-05-02 17:59:59 +03:00
bnnm
e1db5aab55 Fix .xsew [Mega Man X Legacy Collection (PC)] 2021-03-27 17:42:22 +01:00
bnnm
2f516d4e29 Add RIFF .ima [Baja: Edge of Control (PS3/X360)] 2020-11-22 19:01:17 +01:00
bnnm
1770ca53b6 Fix buggy .at3 [E.X. Troopers (PS3)] 2020-11-09 14:51:59 +01:00
bnnm
67c9854a82 Fix .AT9 with wrong padding [F1 2011 (Vita)] 2020-08-12 17:40:20 +02:00
NicknineTheEagle
cc530b3973 RIFF: Fixed mono .mvw [Dragon Quest VIII (PS2), Rogue Galaxy (PS2)] 2020-07-30 19:22:12 +03:00
NicknineTheEagle
595d541f06 RIFF: Fixed .mvw again [Dragon Quest VIII (PS2), Rogue Galaxy (PS2)] 2020-07-19 18:06:27 +03:00