From 0dc44e8efd7ab4997812911e7db2869eae807ee9 Mon Sep 17 00:00:00 2001 From: Thomas Harte Date: Thu, 30 Nov 2023 14:37:13 -0500 Subject: [PATCH] Adjust audio formulation. Probably still not right, but less wrong with the current input. --- Machines/PCCompatible/PCCompatible.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Machines/PCCompatible/PCCompatible.cpp b/Machines/PCCompatible/PCCompatible.cpp index 5a5f81c92..90ca5873a 100644 --- a/Machines/PCCompatible/PCCompatible.cpp +++ b/Machines/PCCompatible/PCCompatible.cpp @@ -573,8 +573,8 @@ struct PCSpeaker { } void set_level() { - // TODO: eliminate complete guess of mixing function here. - const bool new_output = (pit_mask_ & pit_input_) ^ level_; + // TODO: I think pit_mask_ actually acts as the gate input to the PIT. + const bool new_output = (!pit_mask_ | pit_input_) & level_; if(new_output != output_) { update();