1
0
mirror of https://github.com/TomHarte/CLK.git synced 2024-09-29 16:55:59 +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() {
// 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();