From 768b3709b8c57ae5e6c899fcf39c89ccd2a8fbe8 Mon Sep 17 00:00:00 2001 From: Thomas Harte Date: Tue, 10 Dec 2019 20:25:27 -0500 Subject: [PATCH] Corrects audio clock rate. --- Machines/Atari/ST/AtariST.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Machines/Atari/ST/AtariST.cpp b/Machines/Atari/ST/AtariST.cpp index 322d35c7e..a9e8697c9 100644 --- a/Machines/Atari/ST/AtariST.cpp +++ b/Machines/Atari/ST/AtariST.cpp @@ -67,7 +67,7 @@ class ConcreteMachine: speaker_(ay_), ikbd_(keyboard_acia_->transmit, keyboard_acia_->receive) { 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 video_->set_ram(reinterpret_cast(ram_.data()), ram_.size());