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

Opted to pass times by reference and added enough to PCMPatchedTrack that it could start being used by the disk controller, albeit that it doesn't work.

This commit is contained in:
Thomas Harte
2016-12-17 16:26:45 -05:00
parent dc08a23ceb
commit f1a08b7ab5
5 changed files with 30 additions and 12 deletions
+16
View File
@@ -10,7 +10,23 @@
using namespace Storage::Disk;
PCMPatchedTrack::PCMPatchedTrack(Track &underlying_track) :
underlying_track_(underlying_track),
active_patch_((size_t)-1)
{}
void PCMPatchedTrack::add_segment(const Time &start_position, const PCMSegment &segment)
{
patches_.emplace_back(start_position, segment);
}
Track::Event PCMPatchedTrack::get_next_event()
{
// if(active_patch_ == (size_t)-1)
return underlying_track_.get_next_event();
}
Storage::Time PCMPatchedTrack::seek_to(const Time &time_since_index_hole)
{
return underlying_track_.seek_to(time_since_index_hole);
}