Commit Graph

3319 Commits

Author SHA1 Message Date
bnnm
fd52fe0e95 Clean clHCA lib 3 (API)
- rename clHCA_DecodeSamples16 to clHCA_ReadSamples16 since it isn't
really decoding
- divide clHCA_Decode into clHCA_DecodeHeader and clHCA_DecodeBlock to
clarify usage
- unify clHCA_IsOurFile0/1 since one would need to call
clHCA_DecodeHeader right after it anyway
- add clHCA_SetKey for easier key handling
- adapt vgmstream wrapper
2018-09-01 20:28:00 +02:00
bnnm
a38e3a4878 Clean clHCA lib 2 (cleanup)
- Removed some overdone optimizations for clarity (don't seem to save
any substantial time when decoding +150 files)
- Remove unnecessary structs
- Treat keycode as a single 64b value
- Lib info and other tweaks
2018-09-01 17:37:07 +02:00
bnnm
98636e5f2a Clean clHCA lib (comments, renames, api, code)
- Properly identify variables/functions/etc, all thanks to
Thealexbarney's excellent decoder analysis in VGAudio
- Simplify code to standard C, rather than asm-style decompilation
- Rename/tweak functions to be more C-like
- Minor fixes (pointer tests, incorrect values, etc)
- All was carefully tested, decoded files should be byte-identical to
previous versions
2018-09-01 16:09:59 +02:00
Nathan Benichou
9d94fdb033
Update rfrm.c
Support for LABL part in RFRM CSMP files
2018-09-01 15:21:46 +02:00
bnnm
43764d6c8d Fix HCA num samples/looping [Binary Domain (PC), Octopath Traveller]
Decoder has been modified a bit so it's easier to feed an arbitrary
number of discard samples (or at least, easier for me to understand),
since encoder delay can be >1024 (frame size) and would make some calcs
go all wobbly
2018-08-29 23:42:47 +02:00
bnnm
9a2a2e4c2e Export extra sample values in clHCA_getInfo 2018-08-29 20:48:35 +02:00
bnnm
411fa498bb Clean HCA meta/decoder for future changes 2018-08-29 20:05:31 +02:00
bnnm
5afd33d62a Split idsp.c into idsp_ie.c and nub_idsp.c 2018-08-28 20:40:02 +02:00
bnnm
f7c26a493d Clean IDSPs 2018-08-28 20:35:07 +02:00
bnnm
c6a9396b67 Fix IDSP segfault 2018-08-28 20:34:55 +02:00
bnnm
9720384fbe Fix bcstm 3DS-IMA last interleave and cleanup 2018-08-28 19:43:12 +02:00
bnnm
d5a11d58e8 Add various metas
- DSP: itl, vag (PPP)
- PS2: int (A2M), ahv, msv, sdf, svg, vis
- PC: .aif (Asobo), ao, apc, wv2
- Xbox: xau (Konami)
2018-08-28 18:47:56 +02:00
Christopher Snowhill
72d0b7a3b0
Merge pull request #289 from bnnm/cleanup-eaxma-xvag-psh-vag-mib-etc
cleanup, eaxma, xvag, psh, vag, mib, etc
2018-08-26 20:40:30 -07:00
bnnm
f71e98a5ba Fix missing MSVC dependencies 2018-08-26 22:56:31 +02:00
bnnm
bee3adc95b Document SQEX SCD looping issues in MPEG 2018-08-26 22:37:04 +02:00
bnnm
0231d635ed Fix Next Level IDSP last interleave/jingles [Mario Strikers Charged] 2018-08-26 22:36:36 +02:00
bnnm
751d5c5f0f Clean DSP meta once again 2018-08-26 20:05:38 +02:00
bnnm
cc537270c1 Add RFRM .csmp and cleanup [Donkey Kong Country Tropical Freeze (Wii U)] 2018-08-26 19:16:24 +02:00
bnnm
ce6722181a Move csmp to its own file, since it's not very standard either 2018-08-26 18:55:57 +02:00
bnnm
f2a5b5954f Move wsi to its own file, since it's not very standard 2018-08-26 17:40:40 +02:00
bnnm
d94485e89e Minor decode_vgmstream cleanup 2018-08-26 17:07:33 +02:00
bnnm
4ee39206c3 Fix Lunar 2 SCD loops/sample rate/stereo and PCM8 cleanup 2018-08-26 16:36:08 +02:00
bnnm
5aad45ab87 Clean AST meta 2018-08-26 13:48:14 +02:00
bnnm
bc62a689c0 Don't call block_update_x manually when using vgmstream_open_stream 2018-08-26 13:47:48 +02:00
bnnm
c2a0311584 Random tweaks 2018-08-26 13:47:02 +02:00
bnnm
92f35029bb Make generic block_update and auto-call in vgmstream_open_stream 2018-08-26 13:46:07 +02:00
bnnm
b02eeeff04 Fix some .SFL looping and SLI cleanup [Hanachirasu (PC)] 2018-08-26 02:26:38 +02:00
bnnm
88f50985de Optimize segmented layout decode samples 2018-08-26 01:05:07 +02:00
bnnm
ee03726bbc Find loop_segment automatically in segmented_layout + remove from metas 2018-08-26 00:59:31 +02:00
bnnm
c9dc0917ff Fix interleave layout hanging when no interleave size set 2018-08-25 21:15:10 +02:00
bnnm
3130eebf0c Minor layout cleanup + doc 2018-08-25 20:46:54 +02:00
bnnm
3765831dbe Remove usage of atrac9_parse_config 2018-08-25 18:03:58 +02:00
bnnm
a734e9c5cb Remove custom ATRAC9 in favor of custom IO
Formats using custom layouts tend to be weird enough that it's a pain to
add support directly in the decoder.
Instead should use custom layouts and I/O streamfiles that, though a bit
wordy and unwieldy at the moment, are a lot more flexible.
2018-08-25 17:48:01 +02:00
bnnm
f86c90c5f9 Use KMA9 custom IO instead of custom ATRAC9 2018-08-25 17:26:49 +02:00
bnnm
9c8dae38dc Fix multilayer XVAG ATRAC9 [flower (Vita), Farpoint (PS4)] 2018-08-25 17:25:02 +02:00
bnnm
1ba2637256 Clean XVAG meta for future changes 2018-08-25 16:23:15 +02:00
bnnm
9e54efe6d8 Remove FFMPEG_EA_XMA as it's now done with custom IO + layers 2018-08-25 13:22:57 +02:00
bnnm
e3255344cf Redo EA-XMA with custom IO for fixes [Skate (X360), NFS: MW (X360)] 2018-08-25 12:48:55 +02:00
bnnm
d8758f0cb5 Fix describe_vgmstream with layered_layout + FFmpeg 2018-08-25 12:22:40 +02:00
bnnm
8cf27cc15e Add .xna XWB [Touhou Makukasai ~ Fantastic Danmaku Festival (PC)] 2018-08-25 12:21:21 +02:00
bnnm
8a57cf4729 Add .dax RIFF [Love Game's - Wai Wai Tennis (PS1)] 2018-08-25 12:20:55 +02:00
bnnm
db899deb99 Add some Makefile extra cflags 2018-08-25 12:19:51 +02:00
bnnm
07ad3250f6 Clean EAAC streamfile and prepare for EA-XMA 2018-08-25 09:57:46 +02:00
bnnm
6654e44517 Improve/fix AWC XMA streamfile for certain cases
It was assuming reads were sequential, though they can skip to offset
(in practice rarely affected), and adjusted packet skip to improve a few
songs.
2018-08-25 09:57:20 +02:00
bnnm
131e4ea123 Add VRTS configurable file comparer, since Windows's FC is so slow 2018-08-25 09:55:42 +02:00
bnnm
19e6e635e1 Minor VRTS speedup 2018-08-24 20:08:44 +02:00
bnnm
92a6d57227 Fix typos and doc stuff 2018-08-24 19:37:31 +02:00
bnnm
b17719f69c Rename render_vgmstream_nolayout to _flat for clarity/consistency
But not layout_none to layout_flat, since it's used everywhere
2018-08-24 19:37:02 +02:00
bnnm
f576d9568c Rename nolayout.c to flat.c for consistency/clarity 2018-08-24 19:29:39 +02:00
bnnm
b4884522d8 Optimize STDIO/FOO streamfiles slightly
Tries to simplify code, and buffer is not emptied unless we really read
more data (useful for edge reads). get_offset is now reliable (though
never used).
2018-08-24 18:48:42 +02:00