From 80552ff1b576c3c4fe679a3f67d0ecd619103dee Mon Sep 17 00:00:00 2001 From: XProger Date: Sat, 21 Jan 2017 19:06:13 +0300 Subject: [PATCH] #25 fix VAG decoder sound "clicks" --- src/sound.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/sound.h b/src/sound.h index d0aca91..4ce27d1 100644 --- a/src/sound.h +++ b/src/sound.h @@ -155,7 +155,7 @@ namespace Sound { VAG(Stream *stream) : Decoder(stream, 1), s1(0), s2(0), bufferSize(0) {} void predicate(short value) { - int inc[] = { 0, 60, 115, 90, 122 }; + int inc[] = { 0, 60, 115, 98, 122 }; int dec[] = { 0, 0, -52, -55, -60 }; int s = (s1 * inc[pred] + s2 * dec[pred]) >> 6;