mirror of
https://github.com/vgmstream/vgmstream.git
synced 2024-11-24 15:00:11 +01:00
Fix .hca key detection for newer Tales of the Rays files
This commit is contained in:
parent
4f79dc82e8
commit
e4465fc117
@ -155,9 +155,10 @@ void free_hca(hca_codec_data * data) {
|
||||
#define HCA_KEY_SCORE_SCALE 10
|
||||
/* ignores beginning frames (~10 is not uncommon, Dragalia Lost vocal layers have lots) */
|
||||
#define HCA_KEY_MAX_SKIP_BLANKS 1200
|
||||
/* 5~15 should be enough, but almost silent or badly mastered files may need tweaks */
|
||||
#define HCA_KEY_MIN_TEST_FRAMES 5
|
||||
#define HCA_KEY_MAX_TEST_FRAMES 10
|
||||
/* 5~15 should be enough, but almost silent or badly mastered files may need tweaks
|
||||
* (ex. newer Tales of the Rays files clip a lot and need +6 as some keys give almost-ok results) */
|
||||
#define HCA_KEY_MIN_TEST_FRAMES 7
|
||||
#define HCA_KEY_MAX_TEST_FRAMES 12
|
||||
/* score of 10~30 isn't uncommon in a single frame, too many frames over that is unlikely */
|
||||
#define HCA_KEY_MAX_FRAME_SCORE 150
|
||||
#define HCA_KEY_MAX_TOTAL_SCORE (HCA_KEY_MAX_TEST_FRAMES * 50*HCA_KEY_SCORE_SCALE)
|
||||
|
Loading…
Reference in New Issue
Block a user