mirror of
https://github.com/XProger/OpenLara.git
synced 2025-08-09 14:47:02 +02:00
#25 fix VAG decoder sound "clicks"
This commit is contained in:
@@ -155,7 +155,7 @@ namespace Sound {
|
|||||||
VAG(Stream *stream) : Decoder(stream, 1), s1(0), s2(0), bufferSize(0) {}
|
VAG(Stream *stream) : Decoder(stream, 1), s1(0), s2(0), bufferSize(0) {}
|
||||||
|
|
||||||
void predicate(short value) {
|
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 dec[] = { 0, 0, -52, -55, -60 };
|
||||||
|
|
||||||
int s = (s1 * inc[pred] + s2 * dec[pred]) >> 6;
|
int s = (s1 * inc[pred] + s2 * dec[pred]) >> 6;
|
||||||
|
Reference in New Issue
Block a user