1
0
mirror of https://github.com/TomHarte/CLK.git synced 2024-11-29 12:50:28 +00:00

Fixes underpumping of SN76489.

Audio works now. Though I still need properly to confirm who owns dividers in practice. I think probably all division should be within the SN.
This commit is contained in:
Thomas Harte 2018-02-27 22:59:29 -05:00
parent 5b854d51e7
commit 87760297fc

View File

@ -109,7 +109,7 @@ class ConcreteMachine:
z80_(*this), z80_(*this),
sn76489_(audio_queue_), sn76489_(audio_queue_),
speaker_(sn76489_) { speaker_(sn76489_) {
speaker_.set_input_rate(3579545.0f); // TODO: try to find out whether this is correct. speaker_.set_input_rate(3579545.0f / 2.0f); // TODO: try to find out whether this is correct.
set_clock_rate(3579545); set_clock_rate(3579545);
joysticks_.emplace_back(new Joystick); joysticks_.emplace_back(new Joystick);
joysticks_.emplace_back(new Joystick); joysticks_.emplace_back(new Joystick);