From 0648b3e759f774d3ede222eb67b0074cbc6a4f44 Mon Sep 17 00:00:00 2001 From: Iscle Date: Sun, 16 Oct 2022 17:01:43 +0200 Subject: [PATCH] Update --- src/cpp/viper/effects/FETCompressor.cpp | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/src/cpp/viper/effects/FETCompressor.cpp b/src/cpp/viper/effects/FETCompressor.cpp index ac034ee..bea42ea 100644 --- a/src/cpp/viper/effects/FETCompressor.cpp +++ b/src/cpp/viper/effects/FETCompressor.cpp @@ -41,7 +41,15 @@ float FETCompressor::GetMeter(int param_1) { return 0.0; } - // TODO: Implement + if (this->unk1) { + float tmp = (6.907755 - this->unk28) / 6.907755; + if (tmp < 1.0) { + if (tmp < 0.0) { + tmp = 0.0; + } + return tmp; + } + } return 1.0; }