| 3174 | } |
| 3175 | |
| 3176 | auto WaveTrack::DoCreateClip(double offset, const wxString& name) const |
| 3177 | -> WaveClipHolder |
| 3178 | { |
| 3179 | auto clip = std::make_shared<WaveClip>(NChannels(), |
| 3180 | mpFactory, GetSampleFormat(), GetRate()); |
| 3181 | clip->SetName(name); |
| 3182 | clip->SetSequenceStartTime(offset); |
| 3183 | |
| 3184 | const auto& tempo = GetProjectTempo(*this); |
| 3185 | if (tempo.has_value()) |
| 3186 | clip->OnProjectTempoChange(std::nullopt, *tempo); |
| 3187 | assert(clip->NChannels() == NChannels()); |
| 3188 | return clip; |
| 3189 | } |
| 3190 | |
| 3191 | auto WaveTrack::NewestOrNewClip() -> IntervalHolder |
| 3192 | { |
nothing calls this directly
no test coverage detected