1
0
mirror of https://github.com/TomHarte/CLK.git synced 2024-07-05 10:28:58 +00:00

Adds a low-pass filter to the Apple II's audio.

This commit is contained in:
Thomas Harte 2018-05-14 21:56:14 -04:00
parent 6c8e6e9303
commit 8907d0a9a7

View File

@ -139,6 +139,9 @@ class ConcreteMachine:
// decision to sample it at seven times the CPU clock (plus stretches).
speaker_.set_input_rate(static_cast<float>(master_clock / (2.0 * static_cast<float>(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_));
}