1
0
mirror of https://github.com/TomHarte/CLK.git synced 2026-04-19 19:16:34 +00:00

Switches disk seeking logic fully to floating point.

This commit is contained in:
Thomas Harte
2020-07-17 22:08:58 -04:00
parent cbb0594e6b
commit 4ee29b3266
8 changed files with 26 additions and 22 deletions
+2 -2
View File
@@ -35,7 +35,7 @@ Storage::Disk::PCMSegment Storage::Disk::track_serialisation(const Track &track,
length_multiplier.simplify();
// start at the index hole
track_copy->seek_to(Time(0));
track_copy->seek_to(0.0f);
// grab events until the next index hole
Time time_error = Time(0);
@@ -54,7 +54,7 @@ Storage::Disk::PCMSegment Storage::Disk::track_serialisation(const Track &track,
if(history_size) {
history_size--;
if(!history_size) {
track_copy->seek_to(Time(0));
track_copy->seek_to(0.0f);
time_error.set_zero();
result_accumulator.is_recording = true;
}