From 4586e4b4c1a04d94e25da6596d49c1fb338e34b3 Mon Sep 17 00:00:00 2001 From: Thomas Harte Date: Tue, 11 Nov 2025 14:26:53 -0500 Subject: [PATCH] Apply envelope. --- Components/SID/SID.hpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Components/SID/SID.hpp b/Components/SID/SID.hpp index 20797adc4..17e92dc45 100644 --- a/Components/SID/SID.hpp +++ b/Components/SID/SID.hpp @@ -273,7 +273,8 @@ private: if(noise()) output &= noise_output(); - return output; + // Scale output to 14 bits. + return (output * adsr.envelope) >> 6; } };