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:
@@ -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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user