1
0
mirror of https://github.com/TomHarte/CLK.git synced 2026-04-26 03:29:40 +00:00

Converts Time::get into a template, introduces a via-a-double fallback for the timed event loop.

This commit is contained in:
Thomas Harte
2018-04-25 19:54:39 -04:00
parent b4f6dee954
commit 4c6dc597f4
11 changed files with 36 additions and 22 deletions
+1 -1
View File
@@ -40,7 +40,7 @@ Storage::Disk::PCMSegment Storage::Disk::track_serialisation(Track &track, Time
Time extended_length = next_event.length * length_multiplier + time_error;
time_error.clock_rate = extended_length.clock_rate;
time_error.length = extended_length.length % extended_length.clock_rate;
pll.run_for(Cycles(static_cast<int>(extended_length.get_unsigned_int())));
pll.run_for(Cycles(extended_length.get<int>()));
pll.add_pulse();
// If the PLL is now sufficiently primed, restart, and start recording bits this time.