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

Corrects audio clock rate.

This commit is contained in:
Thomas Harte 2019-12-10 20:25:27 -05:00
parent 7cc5d0b209
commit 768b3709b8

View File

@ -67,7 +67,7 @@ class ConcreteMachine:
speaker_(ay_), speaker_(ay_),
ikbd_(keyboard_acia_->transmit, keyboard_acia_->receive) { ikbd_(keyboard_acia_->transmit, keyboard_acia_->receive) {
set_clock_rate(CLOCK_RATE); set_clock_rate(CLOCK_RATE);
speaker_.set_input_rate(CLOCK_RATE / 4); speaker_.set_input_rate(float(CLOCK_RATE) / 4.0f);
ram_.resize(512 * 1024); // i.e. 512kb ram_.resize(512 * 1024); // i.e. 512kb
video_->set_ram(reinterpret_cast<uint16_t *>(ram_.data()), ram_.size()); video_->set_ram(reinterpret_cast<uint16_t *>(ram_.data()), ram_.size());