1
0
mirror of https://github.com/TomHarte/CLK.git synced 2024-06-25 18:30:07 +00:00

Corrects AY audio tone.

This commit is contained in:
Thomas Harte 2024-02-14 22:16:37 -05:00
parent 3ac5fdafab
commit 0103761b7b

View File

@ -147,7 +147,7 @@ template <Analyser::Static::AppleII::Target::Model model, bool has_mockingboard>
void update_video() {
video_.run_for(cycles_since_video_update_.flush<Cycles>());
}
static constexpr int audio_divider = 8;
static constexpr int audio_divider = has_mockingboard ? 1 : 8;
void update_audio() {
speaker_.run_for(audio_queue_, cycles_since_audio_update_.divide(Cycles(audio_divider)));
}