From ac38e353dfd6b4c14f0b071e6c25bc6c91b5ad99 Mon Sep 17 00:00:00 2001 From: Simon Aarons <40786398+simontime@users.noreply.github.com> Date: Sun, 16 Aug 2020 22:57:38 +1000 Subject: [PATCH] Use adpcm_history1_32 for consistency --- src/coding/tgcadpcm_decoder.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/coding/tgcadpcm_decoder.c b/src/coding/tgcadpcm_decoder.c index d5a76672..2362e14b 100644 --- a/src/coding/tgcadpcm_decoder.c +++ b/src/coding/tgcadpcm_decoder.c @@ -42,6 +42,6 @@ void decode_tgc(VGMSTREAMCHANNEL * stream, sample_t * outbuf, int32_t first_samp if (stream->adpcm_history1_32 > 32767) stream->adpcm_history1_32 = 32767; - outbuf[sample_count] = stream->adpcm_history1_16; + outbuf[sample_count] = (sample_t)stream->adpcm_history1_32; } }