From 8907d0a9a7d989361b68c1822c074c97f679ba5c Mon Sep 17 00:00:00 2001 From: Thomas Harte Date: Mon, 14 May 2018 21:56:14 -0400 Subject: [PATCH] Adds a low-pass filter to the Apple II's audio. --- Machines/AppleII/AppleII.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/Machines/AppleII/AppleII.cpp b/Machines/AppleII/AppleII.cpp index eddc22d6d..fb0905c24 100644 --- a/Machines/AppleII/AppleII.cpp +++ b/Machines/AppleII/AppleII.cpp @@ -139,6 +139,9 @@ class ConcreteMachine: // decision to sample it at seven times the CPU clock (plus stretches). speaker_.set_input_rate(static_cast(master_clock / (2.0 * static_cast(audio_divider)))); + // Apply a 10Khz low-pass filter. This was picked by ear. + speaker_.set_high_frequency_cutoff(10000); + // Also, start with randomised memory contents. Memory::Fuzz(ram_, sizeof(ram_)); }