mirror of
https://github.com/TomHarte/CLK.git
synced 2025-08-15 14:27:29 +00:00
Adds a low-pass filter to the Apple II's audio.
This commit is contained in:
@@ -139,6 +139,9 @@ class ConcreteMachine:
|
|||||||
// decision to sample it at seven times the CPU clock (plus stretches).
|
// 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))));
|
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.
|
// Also, start with randomised memory contents.
|
||||||
Memory::Fuzz(ram_, sizeof(ram_));
|
Memory::Fuzz(ram_, sizeof(ram_));
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user