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

After a quick bit of reading, discovered the virtual copy constructor pattern really is only a convention in C++, and conformed to it. Which hopefully gives copyable tracks.

This commit is contained in:
Thomas Harte
2016-12-30 17:25:39 -05:00
parent 71dbd78cf2
commit 63ff5165a4
5 changed files with 29 additions and 0 deletions
+5
View File
@@ -52,6 +52,11 @@ PCMTrack::PCMTrack(const PCMTrack &original) : PCMTrack()
segment_event_sources_ = original.segment_event_sources_;
}
Track *PCMTrack::clone()
{
return new PCMTrack(*this);
}
Track::Event PCMTrack::get_next_event()
{
// ask the current segment for a new event