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; } }