mirror of
https://github.com/vgmstream/vgmstream.git
synced 2025-01-31 04:13:47 +01:00
Fix some .vab with empty sounds
This commit is contained in:
parent
c1ebef54e3
commit
5f98d88d1c
@ -167,8 +167,8 @@ VGMSTREAM* init_vgmstream_vab(STREAMFILE* sf) {
|
||||
|
||||
data_size = read_u16le(waves_off + i * 0x02, sf) << 3;
|
||||
|
||||
if (data_size == 0 && center == 0 && shift == 0) {
|
||||
// hack for empty sounds in Critical Depth
|
||||
if (data_size == 0 /*&& center == 0 && shift == 0*/) {
|
||||
// hack for empty sounds in rare cases (may set center/shift to 0 as well) [Critical Depth]
|
||||
vgmstream = init_vgmstream_silence(1, 44100, 44100);
|
||||
if (!vgmstream) goto fail;
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user