Fix some .bnk [Fat Princess (PS3)]

This commit is contained in:
bnnm 2023-07-08 15:28:47 +02:00
parent a752297d77
commit 73410943a1

View File

@ -472,8 +472,9 @@ VGMSTREAM* init_vgmstream_bnk_sony(STREAMFILE* sf) {
/* hack for PS3 files that use dual subsongs as stereo */ /* hack for PS3 files that use dual subsongs as stereo */
if (total_subsongs == 2 && stream_size * 2 == data_size) { if (total_subsongs == 2 && stream_size * 2 == data_size) {
channels = 2; channels = 2;
stream_size = stream_size*channels; stream_size = stream_size * channels;
total_subsongs = 1; total_subsongs = 1;
start_offset -= stream_offset; /* also channels may be inverted [Fat Princess (PS3)] */
} }
interleave = stream_size / channels; interleave = stream_size / channels;