1
0
mirror of https://github.com/TomHarte/CLK.git synced 2024-12-23 20:29:42 +00:00

Experimental: can I afford a lower sampling rate if there's a low-pass filter in effect?

This commit is contained in:
Thomas Harte 2016-08-22 22:18:05 -04:00
parent f937e08c91
commit dab3580111
2 changed files with 6 additions and 0 deletions

View File

@ -139,6 +139,9 @@ unsigned int Machine::perform_bus_operation(CPU6502::BusOperation operation, uin
_tape.run_for_cycles(1);
}
}
// f7af: find tape header, exit with header in buffer
// F8C0: Read tape block
}
else
{

View File

@ -34,6 +34,9 @@ class Speaker {
float get_ideal_clock_rate_in_range(float minimum, float maximum)
{
// return twice the cut off, if applicable
if(_high_frequency_cut_off > 0.0f && _input_cycles_per_second >= _high_frequency_cut_off * 2.0f && _input_cycles_per_second <= _high_frequency_cut_off * 2.0f) return _high_frequency_cut_off * 2.0f;
// return exactly the input rate if possible
if(_input_cycles_per_second >= minimum && _input_cycles_per_second <= maximum) return _input_cycles_per_second;