From 1f534f88d4cbf7c52fe59016699e05080e43b9e3 Mon Sep 17 00:00:00 2001 From: bnnm Date: Sat, 7 Mar 2020 10:09:42 +0100 Subject: [PATCH] Fix .awc with codec 0 [Max Payne 3 (PC)] --- src/meta/awc.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/meta/awc.c b/src/meta/awc.c index 9aeb3962..c3363da3 100644 --- a/src/meta/awc.c +++ b/src/meta/awc.c @@ -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;