1
0
mirror of https://github.com/TomHarte/CLK.git synced 2025-02-05 21:32:55 +00:00

Adjust audio formulation.

Probably still not right, but less wrong with the current input.
This commit is contained in:
Thomas Harte 2023-11-30 14:37:13 -05:00
parent c076636df1
commit 0dc44e8efd

View File

@ -573,8 +573,8 @@ struct PCSpeaker {
} }
void set_level() { void set_level() {
// TODO: eliminate complete guess of mixing function here. // TODO: I think pit_mask_ actually acts as the gate input to the PIT.
const bool new_output = (pit_mask_ & pit_input_) ^ level_; const bool new_output = (!pit_mask_ | pit_input_) & level_;
if(new_output != output_) { if(new_output != output_) {
update(); update();