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