mirror of
https://github.com/TomHarte/CLK.git
synced 2025-01-11 08:30:55 +00:00
Experimental: can I afford a lower sampling rate if there's a low-pass filter in effect?
This commit is contained in:
parent
f937e08c91
commit
dab3580111
@ -139,6 +139,9 @@ unsigned int Machine::perform_bus_operation(CPU6502::BusOperation operation, uin
|
|||||||
_tape.run_for_cycles(1);
|
_tape.run_for_cycles(1);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// f7af: find tape header, exit with header in buffer
|
||||||
|
// F8C0: Read tape block
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
|
@ -34,6 +34,9 @@ class Speaker {
|
|||||||
|
|
||||||
float get_ideal_clock_rate_in_range(float minimum, float maximum)
|
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
|
// return exactly the input rate if possible
|
||||||
if(_input_cycles_per_second >= minimum && _input_cycles_per_second <= maximum) return _input_cycles_per_second;
|
if(_input_cycles_per_second >= minimum && _input_cycles_per_second <= maximum) return _input_cycles_per_second;
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user