Fix .awc with codec 0 [Max Payne 3 (PC)]

This commit is contained in:
bnnm 2020-03-07 10:09:42 +01:00
parent 987641d866
commit 1f534f88d4

View File

@ -51,7 +51,8 @@ VGMSTREAM * init_vgmstream_awc(STREAMFILE *streamFile) {
switch(awc.codec) {
case 0x01: /* PCM (PC/PS3) [sfx, rarely] */
case 0x00: /* PCM (PC) sfx, very rare, lower sample rates? [Max Payne 3 (PC)] */
case 0x01: /* PCM (PC/PS3) sfx, rarely */
if (awc.is_music) goto fail; /* blocked_awc needs to be prepared */
vgmstream->coding_type = awc.big_endian ? coding_PCM16BE : coding_PCM16LE;
vgmstream->layout_type = layout_interleave;